From 6dd536c9876e66f688f854a134ff9017c7bfc7d2 Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Mon, 21 Mar 2022 01:34:41 -0400 Subject: [PATCH] Fix isolation test for CI --- tests/PhpFpmTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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