diff --git a/tests/PhpFpmTest.php b/tests/PhpFpmTest.php index 102a1d2..6231bec 100644 --- a/tests/PhpFpmTest.php +++ b/tests/PhpFpmTest.php @@ -425,16 +425,18 @@ public function test_un_isolate_will_remove_isolation_for_a_site() public function test_isolate_will_throw_if_site_is_not_parked_or_linked() { $brewMock = Mockery::mock(Brew::class); + $configMock = Mockery::mock(Configuration::class); + $configMock->shouldReceive('read')->andReturn(['tld' => 'jamble', 'paths' => []]); swap(Brew::class, $brewMock); swap(Nginx::class, Mockery::mock(Nginx::class)); + swap(Configuration::class, $configMock); $this->expectException(DomainException::class); $this->expectExceptionMessage("The [test] site could not be found in Valet's site list."); resolve(PhpFpm::class)->isolateDirectory('test', 'php@8.1'); } - } class StubForUpdatingFpmConfigFiles extends PhpFpm