Skip to content

Commit

Permalink
Trying to resolve optimize issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 17, 2024
1 parent d3bc39a commit 2fcc296
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Command/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
$this->cleanSlate();

file_put_contents(base_path('composer.json'), $this->originalComposerContents);

$this->artisan('optimize:clear')->assertSuccessful()->execute();
});

it('can run the config wizard', function () {
Expand Down
6 changes: 6 additions & 0 deletions tests/Command/OptimizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@
DomainCache::clear();

$this->originalComposerContents = file_get_contents(base_path('composer.json'));

$this->artisan('clear-compiled')->assertSuccessful()->execute();
$this->artisan('optimize:clear')->assertSuccessful()->execute();
});

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

file_put_contents(base_path('composer.json'), $this->originalComposerContents);

$this->artisan('clear-compiled')->assertSuccessful()->execute();
$this->artisan('optimize:clear')->assertSuccessful()->execute();
});

it('can optimize discovered domain providers, commands, migrations', function () {
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ protected function setUp(): void

protected function tearDown(): void
{
$this->artisan('clear-compiled')->assertSuccessful()->execute();
$this->artisan('optimize:clear')->assertSuccessful()->execute();

$basePath = $this->getBasePath();

$this->cleanSlate();
Expand Down

0 comments on commit 2fcc296

Please sign in to comment.