Skip to content

Commit 358d045

Browse files
committed
Remove unused tagProductMilestone method
1 parent 1d4b701 commit 358d045

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

WooCommerce/Classes/ViewRelated/Survey/SurveyViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ extension URL {
151151
appendingQueryItem(URLQueryItem(name: Tags.surveyRequestAppVersionTag, value: version))
152152
}
153153

154-
func tagProductMilestone(_ milestone: String) -> URL {
155-
appendingQueryItem(URLQueryItem(name: Tags.surveyRequestProductMilestoneTag, value: milestone))
156-
}
157-
158154
func tagShippingLabelsMilestone(_ milestone: String) -> URL {
159155
appendingQueryItem(URLQueryItem(name: Tags.surveyRequestShippingLabelsMilestoneTag, value: milestone))
160156
}

WooCommerce/WooCommerceTests/ViewRelated/Survey/URL+SurveyViewControllerTests.swift

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ final class URL_SurveyViewControllerTests: XCTestCase {
2323
XCTAssertEqual(expectedURL, actualURL)
2424
}
2525

26-
func test_tagging_product_milestone_appends_the_correct_tag_data() throws {
27-
let expectedURL = "https://testurl.com?product-milestone=test"
28-
29-
let actualURL = URL(string: "https://testurl.com")?.tagProductMilestone("test").absoluteString
30-
31-
XCTAssertEqual(expectedURL, actualURL)
32-
}
33-
3426
func test_tagging_shipping_labels_milestone_appends_the_correct_tag_data() throws {
3527
let expectedURL = "https://testurl.com?shipping_label_milestone=test"
3628

@@ -39,26 +31,14 @@ final class URL_SurveyViewControllerTests: XCTestCase {
3931
XCTAssertEqual(expectedURL, actualURL)
4032
}
4133

42-
func test_tagging_platform_and_tagging_product_milestone_does_stack() throws {
43-
let actualURL =
44-
URL(string: "https://testurl.com")?
45-
.tagPlatform("ios")
46-
.tagProductMilestone("123")
47-
.absoluteString
48-
49-
let expectedURL = "https://testurl.com?woo-mobile-platform=ios&product-milestone=123"
50-
51-
XCTAssertEqual(expectedURL, actualURL)
52-
}
53-
54-
func test_tagging_platform_and_tagging_product_milestone_does_stack_in_order() throws {
34+
func test_tagging_platform_and_tagging_shipping_labels_milestone_does_stack_in_order() throws {
5535
let actualURL =
5636
URL(string: "https://testurl.com")?
57-
.tagProductMilestone("123")
37+
.tagShippingLabelsMilestone("123")
5838
.tagPlatform("ios")
5939
.absoluteString
6040

61-
let expectedURL = "https://testurl.com?product-milestone=123&woo-mobile-platform=ios"
41+
let expectedURL = "https://testurl.com?shipping_label_milestone=123&woo-mobile-platform=ios"
6242

6343
XCTAssertEqual(expectedURL, actualURL)
6444
}

0 commit comments

Comments
 (0)