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

Commit 67cfbe2

Browse files
committed
Change test functions names
1 parent 0b64235 commit 67cfbe2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WordPressKitTests/Utilities/HTTPRequestBuilderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class HTTPRequestBuilderTests: XCTestCase {
205205
try XCTAssertEqual(builder.query(name: "foo", value: "bar").build().url?.query, "locale=zh&foo=bar")
206206
}
207207

208-
func testDefaultQueryExistsInOriginalURL() throws {
208+
func testDefaultQueryDoesNotOverriedQueryItemInOriginalURL() throws {
209209
let url = try HTTPRequestBuilder(url: URL(string: "https://wordpress.org/hello?locale=foo")!)
210210
.query(defaults: [URLQueryItem(name: "locale", value: "en")])
211211
.build()

WordPressKitTests/WordPressComRestApiTests+Locale.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import WordPressShared
77

88
extension WordPressComRestApiTests {
99

10-
func testThatAppendingLocaleWorks() async throws {
10+
func testAddsLocaleToURLQueryByDefault() async throws {
1111
var request: URLRequest?
1212
stub(condition: { _ in true }, response: {
1313
request = $0
@@ -21,7 +21,7 @@ extension WordPressComRestApiTests {
2121
XCTAssertEqual(request?.url?.query, "locale=\(preferredLanguageIdentifier)")
2222
}
2323

24-
func testThatAppendingLocaleWorksWithExistingParams() async throws {
24+
func testAddsLocaleToURLQueryByDefaultAndMaintainsInputParameters() async throws {
2525
var request: URLRequest?
2626
stub(condition: { _ in true }, response: {
2727
request = $0

0 commit comments

Comments
 (0)