1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

Fix PHP version detection requirement

This commit is contained in:
2022-10-18 16:43:17 +02:00
parent 4b8b46a822
commit 507d7d5b23
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class TestableConfigurations {
: .fake(.binary),
"/opt/homebrew/opt/php"
: .fake(.symlink, "/opt/homebrew/Cellar/php/8.1.10_1"),
"/opt/homebrew/opt/php@8.1/bin/php"
: .fake(.symlink, "/opt/homebrew/Cellar/php/8.1.10_1/bin/php"),
"/opt/homebrew/Cellar/php/8.1.10_1"
: .fake(.directory),
"/opt/homebrew/Cellar/php/8.1.10_1/bin/php"

View File

@ -70,6 +70,9 @@ final class StartupTest: UITestCase {
let statusBarItem = app.statusItems.firstMatch
statusBarItem.click()
assertAllExist([
// "Switch to PHP 8.1 (php)" should be visible since it is aliased to `php`
app.menuItems["\("mi_php_switch".localized) 8.1 (php)"],
// We should see the about and quit items
app.menuItems["mi_about".localized],
app.menuItems["mi_quit".localized]
])