Skip to content

Commit

Permalink
Add optimize:clear calls
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 16, 2024
1 parent 2fd04e2 commit 96a39fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/Autoload/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
];

$this->setupTestApplication();

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

afterEach(function () {
Expand Down
1 change: 1 addition & 0 deletions tests/Autoload/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

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

afterEach(function () {
Expand Down
4 changes: 3 additions & 1 deletion tests/Autoload/IgnoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
];

$this->setupTestApplication();
})->skip();

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

afterEach(function () {
DomainCache::clear();
Expand Down
3 changes: 3 additions & 0 deletions tests/Autoload/PolicyTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Gate;
use Lunarstorm\LaravelDDD\Support\AutoloadManager;
use Lunarstorm\LaravelDDD\Support\DomainCache;
Expand All @@ -15,6 +16,8 @@
];

$this->setupTestApplication();

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

afterEach(function () {
Expand Down
3 changes: 3 additions & 0 deletions tests/Autoload/ProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Artisan;
use Lunarstorm\LaravelDDD\Facades\Autoload;
use Lunarstorm\LaravelDDD\Support\AutoloadManager;
use Lunarstorm\LaravelDDD\Support\DomainCache;
Expand All @@ -15,6 +16,8 @@
];

$this->setupTestApplication();

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

afterEach(function () {
Expand Down

0 comments on commit 96a39fe

Please sign in to comment.