Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix test failing on MacOS now we don't do home expansion
  • Loading branch information
ashleyhindle committed Aug 27, 2025
commit e19a45296edf6ca4cd559452f4e7e6000aef159a
6 changes: 3 additions & 3 deletions tests/Unit/Install/HerdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ function getHerdTestTempDir(): string
expect($herd->mcpPath())->toBe($expected);
})->onlyOnWindows();

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

$herd = new Herd;

expect($herd->isMcpAvailable())->toBeFalse();
});
})->onlyOnWindows();

test('isMcpAvailable returns true when MCP file exists', function () {
test('isMcpAvailable returns true when MCP file exists in home', function () {
$testHome = getHerdTestTempDir().'/home';
mkdir($testHome, 0755, true);
$_SERVER['HOME'] = $testHome;
Expand Down