Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit c44bb13

Browse files
committed
Remove all stubs upon tearing down test case
1 parent a65b40b commit c44bb13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPressKitTests/SelfHostedPluginManagementClientTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ class SelfHostedPluginManagementClientTests: XCTestCase {
1515
}
1616
}
1717

18+
override func tearDown() {
19+
super.tearDown()
20+
21+
HTTPStubs.removeAllStubs()
22+
}
23+
1824
func testGetPluginsSuccess() throws {
1925
let response = try fixture(filePath: XCTUnwrap(OHPathForFile("self-hosted-plugins-get.json", type(of: self))), headers: nil)
2026
stub(condition: isHost("wp-site.com") && isPath("/wp-json/wp/v2/plugins")) { _ in

0 commit comments

Comments
 (0)