Skip to content

Commit e19a452

Browse files
committed
test: fix test failing on MacOS now we don't do home expansion
1 parent ab60b26 commit e19a452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Unit/Install/HerdTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ function getHerdTestTempDir(): string
7777
expect($herd->mcpPath())->toBe($expected);
7878
})->onlyOnWindows();
7979

80-
test('isMcpAvailable returns false when MCP file is missing', function () {
80+
test('isMcpAvailable returns false when MCP file is missing from home', function () {
8181
$testHome = getHerdTestTempDir().'/home';
8282
mkdir($testHome, 0755, true);
8383
$_SERVER['HOME'] = $testHome;
8484

8585
$herd = new Herd;
8686

8787
expect($herd->isMcpAvailable())->toBeFalse();
88-
});
88+
})->onlyOnWindows();
8989

90-
test('isMcpAvailable returns true when MCP file exists', function () {
90+
test('isMcpAvailable returns true when MCP file exists in home', function () {
9191
$testHome = getHerdTestTempDir().'/home';
9292
mkdir($testHome, 0755, true);
9393
$_SERVER['HOME'] = $testHome;

0 commit comments

Comments
 (0)