Skip to content

Commit

Permalink
Attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 17, 2024
1 parent a1d0321 commit 7cff718
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Autoload/IgnoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

DomainCache::clear();
Artisan::call('ddd:clear');

Config::set('ddd.autoload', [
'providers' => true,
'commands' => true,
'factories' => true,
'policies' => true,
'migrations' => true,
]);
});

afterEach(function () {
Expand All @@ -49,6 +57,8 @@

expect($cached)->toEqualCanonicalizing($expected);

DomainCache::clear();

Config::set('ddd.autoload_ignore', ['Commands']);

Artisan::call('ddd:optimize');
Expand Down Expand Up @@ -95,6 +105,8 @@

expect($cached)->toEqualCanonicalizing($expected);

DomainCache::clear();

$secret = null;

DDD::filterAutoloadPathsUsing(function (SplFileInfo $file) use (&$secret) {
Expand Down

0 comments on commit 7cff718

Please sign in to comment.