1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Fix isolation test for CI

This commit is contained in:
Matt Stauffer
2022-03-21 01:34:41 -04:00
parent 29b2f45719
commit 6dd536c987

View File

@@ -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() public function test_isolate_will_throw_if_site_is_not_parked_or_linked()
{ {
$brewMock = Mockery::mock(Brew::class); $brewMock = Mockery::mock(Brew::class);
$configMock = Mockery::mock(Configuration::class);
$configMock->shouldReceive('read')->andReturn(['tld' => 'jamble', 'paths' => []]);
swap(Brew::class, $brewMock); swap(Brew::class, $brewMock);
swap(Nginx::class, Mockery::mock(Nginx::class)); swap(Nginx::class, Mockery::mock(Nginx::class));
swap(Configuration::class, $configMock);
$this->expectException(DomainException::class); $this->expectException(DomainException::class);
$this->expectExceptionMessage("The [test] site could not be found in Valet's site list."); $this->expectExceptionMessage("The [test] site could not be found in Valet's site list.");
resolve(PhpFpm::class)->isolateDirectory('test', 'php@8.1'); resolve(PhpFpm::class)->isolateDirectory('test', 'php@8.1');
} }
} }
class StubForUpdatingFpmConfigFiles extends PhpFpm class StubForUpdatingFpmConfigFiles extends PhpFpm