diff --git a/UnitTests/BraintreePayPalTests/BTPayPalClient_Tests.swift b/UnitTests/BraintreePayPalTests/BTPayPalClient_Tests.swift index 7d112d2d3..14527dbb6 100644 --- a/UnitTests/BraintreePayPalTests/BTPayPalClient_Tests.swift +++ b/UnitTests/BraintreePayPalTests/BTPayPalClient_Tests.swift @@ -982,24 +982,6 @@ class BTPayPalClient_Tests: XCTestCase { XCTAssertNil(lastPostParameters["merchant_app_return_url"] as? String) } - func testInvokedOpenURLSuccessfully_whenSuccess_sendsAppSwitchSucceededWithAppSwitchURL() { - let eventName = BTPayPalAnalytics.appSwitchSucceeded - let fakeURL = URL(string: "some-url")! - payPalClient.invokedOpenURLSuccessfully(true, url: fakeURL) { _, _ in } - - XCTAssertEqual(mockAPIClient.postedAnalyticsEvents.last!, eventName) - XCTAssertEqual(mockAPIClient.postedAppSwitchURL[eventName], fakeURL.absoluteString) - } - - func testInvokedOpenURLSuccessfully_whenFailure_sendsAppSwitchFailedWithAppSwitchURL() { - let eventName = BTPayPalAnalytics.appSwitchFailed - let fakeURL = URL(string: "some-url")! - payPalClient.invokedOpenURLSuccessfully(false, url: fakeURL) { _, _ in } - - XCTAssertEqual(mockAPIClient.postedAnalyticsEvents.first!, eventName) - XCTAssertEqual(mockAPIClient.postedAppSwitchURL[eventName], fakeURL.absoluteString) - } - // MARK: - Analytics func testAPIClientMetadata_hasIntegrationSetToCustom() {