Skip to content

Commit

Permalink
attempt #1
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Dec 16, 2024
1 parent 77e0422 commit c6d2afa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Feature/RouteCachingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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')))) {
Expand Down

0 comments on commit c6d2afa

Please sign in to comment.