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

Fix test

This commit is contained in:
2022-10-18 14:12:57 +02:00
parent ea5dd3bc46
commit 4b8b46a822

View File

@ -11,12 +11,10 @@ import XCTest
class TestableConfigurationTest: XCTestCase { class TestableConfigurationTest: XCTestCase {
func test_configuration_can_be_saved_as_json() async { func test_configuration_can_be_saved_as_json() async {
var configuration = TestableConfigurations.working var configuration = TestableConfigurations.working
try! configuration.toJson().write(toFile: "/tmp/pmc_working.json", atomically: true, encoding: .utf8)
configuration.filesystem["/opt/homebrew/bin/php"] = nil configuration.filesystem["/opt/homebrew/bin/php"] = nil
try! configuration.toJson().write(toFile: "/tmp/pmc_broken.json", atomically: true, encoding: .utf8)
let json = configuration.toJson()
try! json.write(toFile: "/tmp/pmc_working.json", atomically: true, encoding: .utf8)
try! json.write(toFile: "/tmp/pmc_broken.json", atomically: true, encoding: .utf8)
} }
} }