From 507d7d5b235501782c1d896ea21c025c977824e4 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Tue, 18 Oct 2022 16:43:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20PHP=20version=20detection=20r?= =?UTF-8?q?equirement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Shared/TestableConfigurations.swift | 2 ++ tests/ui/StartupTest.swift | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/Shared/TestableConfigurations.swift b/tests/Shared/TestableConfigurations.swift index 1c77e5a..05f00e4 100644 --- a/tests/Shared/TestableConfigurations.swift +++ b/tests/Shared/TestableConfigurations.swift @@ -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" diff --git a/tests/ui/StartupTest.swift b/tests/ui/StartupTest.swift index c4ef20d..5631360 100644 --- a/tests/ui/StartupTest.swift +++ b/tests/ui/StartupTest.swift @@ -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] ])