Skip to content

Commit

Permalink
ddd:clear before and after each test
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 17, 2024
1 parent 9e3a6ec commit e45a2c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/Autoload/IgnoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@
$this->setupTestApplication();

DomainCache::clear();

Artisan::call('optimize:clear');
Artisan::call('ddd:clear');
});

afterEach(function () {
DomainCache::clear();

Artisan::call('optimize:clear');
Artisan::call('ddd:clear');
});

it('can ignore folders when autoloading', function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
);

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

$this->beforeApplicationDestroyed(function () {
Expand Down

0 comments on commit e45a2c2

Please sign in to comment.