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

Commit 1dc66a6

Browse files
committed
Remove redundant 'isCorrect' naming from tests
1 parent 2e8390e commit 1dc66a6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

WordPressKitTests/JetpackProxyServiceRemoteTests.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
77
let siteID = 1001
88

99
private var remote: JetpackProxyServiceRemote {
10-
.init(wordPressComRestApi: api)
10+
print(">>> CALL: \(api)")
11+
return .init(wordPressComRestApi: api)
1112
}
1213

1314
// MARK: - Tests
1415

15-
func testProxyRequestEndpointIsCorrect() {
16+
func testProxyRequestEndpoint() {
1617
// the mock rest API doesn't append the base URL, so we're just going to verify the path.
1718
let urlString = "rest/v1.1/jetpack-blogs/\(siteID)/rest-api"
1819

@@ -24,7 +25,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
2425
XCTAssertTrue(passedURLString.hasSuffix(urlString))
2526
}
2627

27-
func testJSONParameterIsCorrect() {
28+
func testJSONParameter() {
2829
remote.proxyRequest(for: siteID, path: "path", method: .get) { _ in }
2930

3031
guard let passedParameter = api.parametersPassedIn as? [String: AnyObject] else {
@@ -33,7 +34,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
3334
XCTAssertEqual(passedParameter["json"] as? String, "true")
3435
}
3536

36-
func testPathParameterIsCorrect() {
37+
func testPathParameter() {
3738
let path = "/wp/v2/posts"
3839
let method = JetpackProxyServiceRemote.DotComMethod.get
3940

@@ -45,7 +46,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
4546
XCTAssertEqual(passedParameter["path"] as? String, "\(path)&_method=\(method.rawValue)")
4647
}
4748

48-
func testBodyParameterKeyForGETMethodIsCorrect() {
49+
func testBodyParameterKeyForGETMethod() {
4950
let method = JetpackProxyServiceRemote.DotComMethod.get
5051
let params = ["key": "value"]
5152

@@ -57,7 +58,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
5758
XCTAssertNotNil(passedParameter["query"])
5859
}
5960

60-
func testBodyParameterKeyForPOSTMethodIsCorrect() {
61+
func testBodyParameterKeyForPOSTMethod() {
6162
let method = JetpackProxyServiceRemote.DotComMethod.post
6263
let params = ["key": "value"]
6364

@@ -69,7 +70,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
6970
XCTAssertNotNil(passedParameter["body"])
7071
}
7172

72-
func testBodyParameterEncodingIsCorrect() {
73+
func testBodyParameterEncoding() {
7374
let method = JetpackProxyServiceRemote.DotComMethod.post
7475
let params = [
7576
"key1": "value1",
@@ -98,7 +99,7 @@ class JetpackProxyServiceRemoteTests: XCTestCase {
9899
XCTAssertNil(passedParameter["body"])
99100
}
100101

101-
func testLocaleParameterIsCorrect() {
102+
func testLocaleParameter() {
102103
let locale = "en_US"
103104

104105
remote.proxyRequest(for: siteID, path: "path", method: .post, locale: locale) { _ in }

0 commit comments

Comments
 (0)