Skip to content

Commit

Permalink
Normalize hooks to use ddd:clear
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 17, 2024
1 parent 18ca89b commit fb79601
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/Autoload/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@

$this->setupTestApplication();

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

afterEach(function () {
DomainCache::clear();
Artisan::call('ddd:clear');
});

describe('when ddd.autoload.commands = false', function () {
Expand Down
4 changes: 3 additions & 1 deletion tests/Autoload/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

beforeEach(function () {
$this->setupTestApplication();
Artisan::call('optimize:clear');
DomainCache::clear();
Artisan::call('ddd:clear');
});

afterEach(function () {
DomainCache::clear();
Artisan::call('ddd:clear');
});

describe('when ddd.autoload.factories = true', function () {
Expand Down
4 changes: 3 additions & 1 deletion tests/Autoload/PolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@

$this->setupTestApplication();

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

afterEach(function () {
DomainCache::clear();
Artisan::call('ddd:clear');
});

describe('when ddd.autoload.policies = false', function () {
Expand Down
4 changes: 3 additions & 1 deletion tests/Autoload/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@

$this->setupTestApplication();

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

afterEach(function () {
DomainCache::clear();
Artisan::call('ddd:clear');
});

describe('when ddd.autoload.providers = false', function () {
Expand Down

0 comments on commit fb79601

Please sign in to comment.