@@ -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