'application/json', ]; protected function setUp(): void { parent::setUp(); Event::fake(ActivityLogged::class); } /** * Return an ISO-8601 formatted timestamp to use in the API response. */ protected function formatTimestamp(string $timestamp): string { return CarbonImmutable::createFromFormat(CarbonInterface::DEFAULT_TO_STRING_FORMAT, $timestamp) ->setTimezone(BaseTransformer::RESPONSE_TIMEZONE) ->toAtomString(); } /** * The database connections that should have transactions. * * @return array */ protected function connectionsToTransact() { return [DB::getDriverName()]; } }