-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d21b2c
commit fbd98a8
Showing
4 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,8 +239,6 @@ class BTPayPalClient_Tests: XCTestCase { | |
enablePayPalAppSwitch: true | ||
) | ||
|
||
vaultRequest.application.payPalAppInstalled = true | ||
|
||
mockAPIClient.cannedResponseBody = BTJSON(value: [ | ||
"agreementSetup": [ | ||
"paypalAppApprovalUrl": "https://www.paypal.com?ba_token=BA-Random-Value" | ||
|
@@ -932,14 +930,15 @@ class BTPayPalClient_Tests: XCTestCase { | |
|
||
func testIsiOSAppSwitchAvailable_whenApplicationCanOpenPayPalInAppURL_returnsTrueAndSendsAnalytics() { | ||
let fakeApplication = FakeApplication() | ||
fakeApplication.cannedCanOpenURL = true | ||
payPalClient.application = fakeApplication | ||
|
||
let vaultRequest = BTPayPalVaultRequest( | ||
userAuthenticationEmail: "[email protected]", | ||
enablePayPalAppSwitch: true | ||
) | ||
|
||
vaultRequest.application.payPalAppInstalled = true | ||
vaultRequest.application = fakeApplication | ||
|
||
mockAPIClient.cannedResponseBody = BTJSON(value: [ | ||
"agreementSetup": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters