mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-05 12:30:07 +01:00
- Centralized logic related to fetching Valet version. - Updating global dependencies now updates the version number of Valet in the driver section. - The latest version of Valet is now determined by checking Packagist. (This only occurs when the app starts up.)
20 lines
466 B
Swift
20 lines
466 B
Swift
//
|
|
// PackagistTest.swift
|
|
// PHP Monitor
|
|
//
|
|
// Created by Nico Verbruggen on 25/08/2025.
|
|
// Copyright © 2025 Nico Verbruggen. All rights reserved.
|
|
//
|
|
|
|
import Testing
|
|
|
|
@Suite("Integration")
|
|
struct PackagistTest {
|
|
@Test func canRetrieveLaravelValetVersion() async {
|
|
let packageToCheck = "laravel/valet"
|
|
let latestVersion = try? await Packagist.getLatestStableVersion(packageName: packageToCheck)
|
|
|
|
#expect(latestVersion != nil)
|
|
}
|
|
}
|