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

Fix tests

This commit is contained in:
2022-11-02 19:44:36 +01:00
parent ff5fdd82b1
commit f2d5b94831
4 changed files with 33 additions and 8 deletions

View File

@ -0,0 +1,21 @@
//
// RealFileSystemTest.swift
// Unit Tests
//
// Created by Nico Verbruggen on 02/11/2022.
// Copyright © 2022 Nico Verbruggen. All rights reserved.
//
import XCTest
class RealFileSystemTest: XCTestCase {
override class func setUp() {
ActiveFileSystem.useSystem()
}
func test_testable_fs_is_in_use() {
XCTAssertTrue(FileSystem is RealFileSystem)
}
}

View File

@ -10,7 +10,7 @@ import XCTest
class TestableFileSystemTest: XCTestCase {
override class func setUp() {
override func setUp() async throws {
ActiveFileSystem.useTestable([
"/home/user/bin/foo": .fake(.binary),
"/home/user/docs": .fake(.symlink, "/home/user/documents"),

View File

@ -1,5 +1,5 @@
//
// SystemShellTest.swift
// RealShellTest.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 28/09/2022.
@ -8,9 +8,9 @@
import XCTest
class SystemShellTest: XCTestCase {
class RealShellTest: XCTestCase {
override class func setUp() {
override func setUp() async throws {
// Reset to the default shell
ActiveShell.useSystem()
}