'application/json', ]; protected function setUp(): void { parent::setUp(); Event::fake(ActivityLogged::class); // The React shell reads the built Vite manifest; point the asset service at a // committed fixture so view rendering does not depend on a frontend build. $this->app->bind(AssetHashService::class, fn (Application $app): AssetHashService => new AssetHashService( $app->make(FilesystemManager::class), base_path('tests/Fixtures'), )); } /** * Return an ISO-8601 formatted timestamp to use in the API response. */ protected function formatTimestamp(CarbonInterface|string $timestamp): string { $value = $timestamp instanceof CarbonInterface ? CarbonImmutable::instance($timestamp) : CarbonImmutable::createFromFormat(CarbonInterface::DEFAULT_TO_STRING_FORMAT, $timestamp); return $value->setTimezone(BaseTransformer::RESPONSE_TIMEZONE)->toAtomString(); } }