Skip to content

Commit

Permalink
Ensure optimize:clear after each test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Oct 15, 2024
1 parent 02c75b0 commit cfc4515
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Command/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
config(['cache.default' => 'file']);

DomainCache::clear();
Artisan::call('cache:clear');
Artisan::call('optimize:clear');
});

afterEach(function () {
$this->artisan('optimize:clear')->execute();
});

it('can cache discovered domain providers, commands, migrations', function () {
Expand Down

0 comments on commit cfc4515

Please sign in to comment.