Skip to content

Commit

Permalink
Try adding reloadApplication hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 18, 2024
1 parent 691268a commit 07ab68f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Command/OptimizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
expect(DomainCache::get('domain-commands'))->toBeNull();
expect(DomainCache::get('domain-migration-paths'))->toBeNull();

$this->reloadApplication();

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

expect(DomainCache::get('domain-providers'))->not->toBeNull();
Expand All @@ -115,6 +117,8 @@
expect(DomainCache::get('domain-commands'))->not->toBeNull();
expect(DomainCache::get('domain-migration-paths'))->not->toBeNull();

$this->reloadApplication();

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

expect(DomainCache::get('domain-providers'))->toBeNull();
Expand Down

0 comments on commit 07ab68f

Please sign in to comment.