-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[in_app_purchase] Convert refreshReceipt(), startObservingPaymentQueue(), stopObservingPaymentQueue(), registerPaymentQueueDelegate(), removePaymentQueueDelegate(), showPriceConsentIfNeeded() to Pigeon #6165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7a2a668
3a7fdee
08cba31
9a3b25d
ca49642
bff4b77
c38d2f3
e6d1054
6dae4e5
4f941c5
fb644f8
03cd82a
1e48d2c
b0aa7cc
ed67de7
732a2dd
f5b07df
5891fd4
6d61374
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -286,7 +286,7 @@ - (void)testRestoreTransactions { | |
|
|
||
| - (void)testRetrieveReceiptDataSuccess { | ||
| FlutterError *error; | ||
| id result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
| NSString *result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
| XCTAssertNotNil(result); | ||
| XCTAssert([result isKindOfClass:[NSString class]]); | ||
| } | ||
|
|
@@ -295,15 +295,15 @@ - (void)testRetrieveReceiptDataNil { | |
| NSBundle *mockBundle = OCMPartialMock([NSBundle mainBundle]); | ||
| OCMStub(mockBundle.appStoreReceiptURL).andReturn(nil); | ||
| FlutterError *error; | ||
| id result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
| NSString *result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
| XCTAssertNil(result); | ||
| } | ||
|
|
||
| - (void)testRetrieveReceiptDataError { | ||
| self.receiptManagerStub.returnError = YES; | ||
|
|
||
| FlutterError *error; | ||
| id result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
| NSString *result = [self.plugin retrieveReceiptDataWithError:&error]; | ||
|
|
||
| XCTAssertNil(result); | ||
| XCTAssertNotNil(error); | ||
|
|
@@ -324,6 +324,7 @@ - (void)testRefreshReceiptRequest { | |
| } | ||
|
|
||
| #if TARGET_OS_IOS | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this only for iOS? Add a quick comment in the code if you intended this.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| /// presentCodeRedemptionSheetWithError:error is only available on iOS | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you put this before the #if please? |
||
| - (void)testPresentCodeRedemptionSheet { | ||
| FIAPaymentQueueHandler *mockHandler = OCMClassMock([FIAPaymentQueueHandler class]); | ||
| self.plugin.paymentQueueHandler = mockHandler; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.