mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-06 04:40:07 +01:00
♻️ Migrate more tests to Swift Testing (3/?)
This commit is contained in:
18
tests/unit/SwiftTestMigrated/Integration/PackagistTest.swift
Normal file
18
tests/unit/SwiftTestMigrated/Integration/PackagistTest.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// PackagistTest.swift
|
||||
// PHP Monitor
|
||||
//
|
||||
// Created by Nico Verbruggen on 25/08/2025.
|
||||
// Copyright © 2025 Nico Verbruggen. All rights reserved.
|
||||
//
|
||||
|
||||
import Testing
|
||||
|
||||
struct PackagistTest {
|
||||
@Test func canRetrieveLaravelValetVersion() async {
|
||||
let packageToCheck = "laravel/valet"
|
||||
let latestVersion = try? await Packagist.getLatestStableVersion(packageName: packageToCheck)
|
||||
|
||||
#expect(latestVersion != nil)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user