From c6d2afa220a8348aadab16e4ebd695ded1cbb38f Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 16 Dec 2024 10:32:12 +0000 Subject: [PATCH] attempt #1 --- tests/Feature/RouteCachingTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Feature/RouteCachingTest.php b/tests/Feature/RouteCachingTest.php index a65e214..d806cd9 100644 --- a/tests/Feature/RouteCachingTest.php +++ b/tests/Feature/RouteCachingTest.php @@ -6,7 +6,9 @@ use Illuminate\Contracts\Console\Kernel; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Support\Arr; use Illuminate\Support\Facades\Session; +use Laravel\Fortify\Features; use Laravel\Socialite\Facades\Socialite; use Laravel\Socialite\Two\GithubProvider; use Laravel\Socialite\Two\User as SocialiteUser; @@ -19,6 +21,12 @@ uses(RefreshDatabase::class); beforeEach(function () { + if (Features::enabled(Features::resetPasswords())) { + $features = array_flip($this->app['config']->get('fortify.features')); + unset($features[Features::resetPasswords()]); + $this->app['config']->set('fortify.features', array_flip($features)); + } + $files = (new Filesystem()); $files->cleanDirectory($this->app->basePath('routes')); if($files->exists($this->app->bootstrapPath(join_paths('cache', 'routes-v7.php')))) {