set('app.debug', false); config()->set('panel.auth.2fa_required', 0); $this->setKnownUuidFactory(); $this->app->make(PermissionRegistrar::class)->forgetCachedPermissions(); try { $seeder = new EggSeeder(); $seeder->run(); } catch (Exception) { // Don't fail all tests if the fixture/ seeder isn't present or import fails. } } /** * Tear down tests. */ protected function tearDown(): void { restore_exception_handler(); restore_error_handler(); parent::tearDown(); Carbon::setTestNow(); CarbonImmutable::setTestNow(); } /** * Handles the known UUID handling in certain unit tests. Use the "MocksUuid" trait * in order to enable this ability. */ public function setKnownUuidFactory() { // do nothing } }