From 07ab68f218428832434680669d125077383e3588 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 17 Nov 2024 19:52:29 -0500 Subject: [PATCH] Try adding reloadApplication hooks --- tests/Command/OptimizeTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Command/OptimizeTest.php b/tests/Command/OptimizeTest.php index c8a0d4d..109e714 100644 --- a/tests/Command/OptimizeTest.php +++ b/tests/Command/OptimizeTest.php @@ -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(); @@ -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();