mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
b26fc3bc4b | |||
f758c5d63a | |||
c7510d778d | |||
7728a1125c | |||
ff61d8c52e | |||
da41673855 | |||
5bda727981 | |||
8790b30706 |
Binary file not shown.
Before Width: | Height: | Size: 674 KiB After Width: | Height: | Size: 723 KiB |
@ -37,6 +37,7 @@ class PhpEnvironments {
|
|||||||
from: brewPhpAlias.data(using: .utf8)!
|
from: brewPhpAlias.data(using: .utf8)!
|
||||||
).first!
|
).first!
|
||||||
|
|
||||||
|
PhpEnvironments.brewPhpAlias = self.homebrewPackage.version
|
||||||
Log.info("[BREW] On your system, the `php` formula means version \(homebrewPackage.version).")
|
Log.info("[BREW] On your system, the `php` formula means version \(homebrewPackage.version).")
|
||||||
|
|
||||||
// Check if that version actually corresponds to an older version
|
// Check if that version actually corresponds to an older version
|
||||||
|
@ -90,16 +90,17 @@ final class MainMenuTest: UITestCase {
|
|||||||
// Should display loader
|
// Should display loader
|
||||||
assertExists(app.staticTexts["phpman.busy.title".localized], 1)
|
assertExists(app.staticTexts["phpman.busy.title".localized], 1)
|
||||||
|
|
||||||
// After loading, should display PHP 8.2
|
// After loading, should display PHP 8.2 and PHP 8.3
|
||||||
assertExists(app.staticTexts["PHP 8.2"], 5)
|
assertExists(app.staticTexts["PHP 8.2"], 5)
|
||||||
|
assertExists(app.staticTexts["PHP 8.3"])
|
||||||
|
|
||||||
// Should also display pre-release version
|
// Should also display pre-release version
|
||||||
assertExists(app.staticTexts["PHP 8.3"])
|
assertExists(app.staticTexts["PHP 8.4"])
|
||||||
assertExists(app.staticTexts["phpman.version.prerelease".localized.uppercased()])
|
assertExists(app.staticTexts["phpman.version.prerelease".localized.uppercased()])
|
||||||
assertExists(app.staticTexts["phpman.version.available_for_installation".localized])
|
assertExists(app.staticTexts["phpman.version.available_for_installation".localized])
|
||||||
|
|
||||||
// But not PHP 8.4 (yet)
|
// But not PHP 8.5 (yet)
|
||||||
assertNotExists(app.staticTexts["PHP 8.4"])
|
assertNotExists(app.staticTexts["PHP 8.5"])
|
||||||
|
|
||||||
// Also, PHP 8.2 should have an update available
|
// Also, PHP 8.2 should have an update available
|
||||||
assertExists(app.staticTexts["phpman.version.has_update".localized(
|
assertExists(app.staticTexts["phpman.version.has_update".localized(
|
||||||
|
Reference in New Issue
Block a user