We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882701a commit 8c54449Copy full SHA for 8c54449
WooCommerce/WooCommerceTests/ViewRelated/Survey/URL+SurveyViewControllerTests.swift
@@ -22,4 +22,18 @@ final class URL_SurveyViewControllerTests: XCTestCase {
22
23
XCTAssertEqual(expectedURL, actualURL)
24
}
25
+
26
+ func test_tagging_site_info_appends_the_correct_tag_data() throws {
27
+ let siteID: Int64 = 123
28
+ let testURL = "https://example.com"
29
+ let storeUUID = "8363cd24-2501-463f-b21b-649315a0d507"
30
31
+ let expectedURL = "https://testurl.com?site-id=\(siteID)&store-id=\(storeUUID)&store-url=\(testURL)"
32
33
+ let actualURL = URL(string: "https://testurl.com")?.tagSiteInfo(siteID: siteID,
34
+ storeUUID: storeUUID,
35
+ storeURL: testURL).absoluteString
36
37
+ XCTAssertEqual(expectedURL, actualURL)
38
+ }
39
0 commit comments