You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: WordPressKitTests/RemoteTestCase.swift
+23-10Lines changed: 23 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -54,16 +54,20 @@ extension RemoteTestCase {
54
54
contentType:ResponseContentType,
55
55
status:Int32=200
56
56
){
57
-
// This doesn't follow the XCTUnwrap pattern (yet?) because the method is used many times and it was too time consuming to update every call site at the time
58
-
letstubPath=OHPathForFile(filename,type(of:self))
57
+
// There are hundreds of usages of the various `stubRemoteResponse` overloads.
58
+
// The pattern here should be to XCTUnwrap and throw.
59
+
// In the interest of moving along with the work, let's fail the tests at this level if the file is not found.
// This doesn't follow the XCTUnwrap pattern (yet?) because the method is used many times and it was too time consuming to update every call site at the time
80
-
letstubPath=OHPathForFile(filename,type(of:self))
83
+
// There are hundreds of usages of the various `stubRemoteResponse` overloads.
84
+
// The pattern here should be to XCTUnwrap and throw.
85
+
// In the interest of moving along with the work, let's fail the tests at this level if the file is not found.
0 commit comments