mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
✅ Fix tests
This commit is contained in:
21
tests/unit/Testables/Filesystem/RealFileSystemTest.swift
Normal file
21
tests/unit/Testables/Filesystem/RealFileSystemTest.swift
Normal 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)
|
||||
}
|
||||
|
||||
}
|
@ -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"),
|
||||
|
@ -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()
|
||||
}
|
Reference in New Issue
Block a user