Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3f22950
init
LouiseHsu May 13, 2024
b3ae498
Merge remote-tracking branch 'upstream/main'
LouiseHsu May 15, 2024
750d5d6
wip
LouiseHsu May 29, 2024
60a1cfe
tests are passing
LouiseHsu Jun 4, 2024
07d1fa9
NOW tests are passing
LouiseHsu Jun 4, 2024
e055868
PaymentQueue tests
LouiseHsu Jun 4, 2024
27bc9dc
remove some incidental files
LouiseHsu Jun 4, 2024
86fe875
remove files 2
LouiseHsu Jun 4, 2024
f0440fa
.
LouiseHsu Jun 4, 2024
77821d0
.
LouiseHsu Jun 4, 2024
c4ba598
.
LouiseHsu Jun 4, 2024
4337a30
.
LouiseHsu Jun 5, 2024
3331f6b
Merge branch 'main' into remove-ocmock
LouiseHsu Jun 5, 2024
710f892
remove testing files
LouiseHsu Jun 5, 2024
dd54781
Merge branch 'remove-ocmock' of github.com:LouiseHsu/packages into re…
LouiseHsu Jun 5, 2024
a6f5c6b
formatting
LouiseHsu Jun 5, 2024
e8425f3
missing import for mac
LouiseHsu Jun 5, 2024
135e328
warnings
LouiseHsu Jun 5, 2024
3d43bb0
macos warnings
LouiseHsu Jun 5, 2024
eb6d45e
.
LouiseHsu Jun 5, 2024
04c733f
.
LouiseHsu Jun 5, 2024
0cb8821
remove ocmock from pods
LouiseHsu Jun 5, 2024
801d47f
clean up
LouiseHsu Jun 6, 2024
1fcbabd
.
LouiseHsu Jun 6, 2024
6911fc8
fix wonky symlinking in test files
LouiseHsu Jun 6, 2024
dc0a6d8
.
LouiseHsu Jun 6, 2024
714b3a1
license block 🤡
LouiseHsu Jun 6, 2024
4cd2042
Merge branch 'main' into remove-ocmock
LouiseHsu Jun 6, 2024
0044139
split up protocols, moved test implementations out of actual implemen…
LouiseHsu Jun 7, 2024
98e8058
Merge branch 'remove-ocmock' of github.com:LouiseHsu/packages into re…
LouiseHsu Jun 7, 2024
3bac1cb
adding missing stubs to methods
LouiseHsu Jun 7, 2024
1e02304
comments
LouiseHsu Jun 7, 2024
db34eb5
more comments
LouiseHsu Jun 7, 2024
f1f66e6
pr comments
LouiseHsu Jun 10, 2024
53a552e
properties, attributes
LouiseHsu Jun 10, 2024
3b19418
pr comments, renaming, format
LouiseHsu Jun 10, 2024
320d2d4
bunch of renaming, pr comments
LouiseHsu Jun 12, 2024
35202db
add comments, moved properties into class extensions
LouiseHsu Jun 13, 2024
074c303
more comments
LouiseHsu Jun 13, 2024
6eaed90
license, more comments
LouiseHsu Jun 13, 2024
147133c
boop pr comments
LouiseHsu Jun 14, 2024
0c06698
boop
LouiseHsu Jun 14, 2024
09719c9
renaming
LouiseHsu Jun 14, 2024
49d06b4
.
LouiseHsu Jun 17, 2024
f55e7a4
failing mac test
LouiseHsu Jun 17, 2024
2ae019f
so much renaming
LouiseHsu Jun 17, 2024
15b0b04
stubs and ///
LouiseHsu Jun 17, 2024
7a0cab6
properties
LouiseHsu Jun 17, 2024
cf656ec
format
LouiseHsu Jun 18, 2024
3e95cdc
format
LouiseHsu Jun 18, 2024
7a54cf9
.
LouiseHsu Jun 21, 2024
dc5499e
oopsies mac version
LouiseHsu Jun 21, 2024
ebd6bf1
remove extra symlnked files
LouiseHsu Jun 21, 2024
bb41e93
.
LouiseHsu Jun 21, 2024
d3f2479
.
LouiseHsu Jun 21, 2024
aed5b28
.
LouiseHsu Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renaming
  • Loading branch information
LouiseHsu committed Jun 14, 2024
commit 09719c92ac234968f5ad4f5f56a00604e87b01a5
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class InAppPurchasePluginStub: InAppPurchasePlugin {
override func getProductRequest(withIdentifiers productIdentifiers: Set<String>)
-> SKProductsRequest
{
return SKProductRequestStub.init(productIdentifiers: productIdentifiers)
return TestSKProductRequest.init(productIdentifiers: productIdentifiers)
}

override func getProduct(productID: String) -> SKProduct? {
if productID == "" {
return nil
}
return SKProductStub.init(productID: productID)
return TestSKProduct.init(productID: productID)
}
override func getRefreshReceiptRequest(properties: [String: Any]?) -> SKReceiptRefreshRequest {
return SKReceiptRefreshRequest(receiptProperties: properties)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ - (void)setUp {
@"transactionTimeStamp" : @([NSDate date].timeIntervalSince1970),
@"originalTransaction" : [NSNull null],
};
self.transaction = [[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
self.transaction = [[TestSKPaymentTransaction alloc] initWithMap:transactionMap];

NSDictionary *storefrontMap = @{
@"countryCode" : @"USA",
@"identifier" : @"unique_identifier",
};
self.storefront = [[SKStorefrontStub alloc] initWithMap:storefrontMap];
self.storefront = [[TestSKStorefront alloc] initWithMap:storefrontMap];
}

- (void)tearDown {
Expand All @@ -59,7 +59,7 @@ - (void)testShouldContinueTransaction {
FIAPPaymentQueueDelegate *delegate =
[[FIAPPaymentQueueDelegate alloc] initWithMethodChannel:mockChannel];

BOOL shouldContinue = [delegate paymentQueue:[[SKPaymentQueueStub alloc] init]
BOOL shouldContinue = [delegate paymentQueue:[[TestSKPaymentQueue alloc] init]
shouldContinueTransaction:self.transaction
inStorefront:self.storefront];

Expand All @@ -81,7 +81,7 @@ - (void)testShouldContinueTransaction_should_default_to_yes {
andSKPaymentTransaction:self.transaction]);
};

BOOL shouldContinue = [delegate paymentQueue:[[SKPaymentQueueStub alloc] init]
BOOL shouldContinue = [delegate paymentQueue:[[TestSKPaymentQueue alloc] init]
shouldContinueTransaction:self.transaction
inStorefront:self.storefront];

Expand All @@ -104,7 +104,7 @@ - (void)testShouldShowPriceConsentIfNeeded {
};

BOOL shouldShow =
[delegate paymentQueueShouldShowPriceConsent:[[SKPaymentQueueStub alloc] init]];
[delegate paymentQueueShouldShowPriceConsent:[[TestSKPaymentQueue alloc] init]];

XCTAssertFalse(shouldShow);
}
Expand All @@ -125,7 +125,7 @@ - (void)testShouldShowPriceConsentIfNeeded_should_default_to_yes {
};

BOOL shouldShow =
[delegate paymentQueueShouldShowPriceConsent:[[SKPaymentQueueStub alloc] init]];
[delegate paymentQueueShouldShowPriceConsent:[[TestSKPaymentQueue alloc] init]];

XCTAssertTrue(shouldShow);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

@interface InAppPurchasePluginTest : XCTestCase

@property(strong, nonatomic) FIAPReceiptManagerStub *receiptManagerStub;
@property(strong, nonatomic) TestFIAPReceiptManager *receiptManagerStub;
@property(strong, nonatomic) InAppPurchasePlugin *plugin;

@end

@implementation InAppPurchasePluginTest

- (void)setUp {
self.receiptManagerStub = [FIAPReceiptManagerStub new];
self.receiptManagerStub = [TestFIAPReceiptManager new];
self.plugin = [[InAppPurchasePluginStub alloc]
initWithReceiptManager:self.receiptManagerStub
handlerFactory:^DefaultRequestHandler *(SKRequest *request) {
Expand Down Expand Up @@ -48,7 +48,7 @@ - (void)testPaymentQueueStorefront {
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
TestTransactionCache *cache = [[TestTransactionCache alloc] init];

queue.storefront = [[SKStorefrontStub alloc] initWithMap:storefrontMap];
queue.storefront = [[TestSKStorefront alloc] initWithMap:storefrontMap];

self.plugin.paymentQueueHandler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:nil
Expand Down Expand Up @@ -128,8 +128,8 @@ - (void)testFinishTransactionSucceeds {
@"transactionTimeStamp" : @([NSDate date].timeIntervalSince1970),
};

SKPaymentTransactionStub *paymentTransaction =
[[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
TestSKPaymentTransaction *paymentTransaction =
[[TestSKPaymentTransaction alloc] initWithMap:transactionMap];
NSArray *array = @[ paymentTransaction ];

TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
Expand Down Expand Up @@ -175,8 +175,8 @@ - (void)testFinishTransactionSucceedsWithNilTransaction {
@"transactionTimeStamp" : @([NSDate date].timeIntervalSince1970),
};

SKPaymentTransactionStub *paymentTransaction =
[[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
TestSKPaymentTransaction *paymentTransaction =
[[TestSKPaymentTransaction alloc] initWithMap:transactionMap];

TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.transactions = @[ paymentTransaction ];
Expand Down Expand Up @@ -628,7 +628,7 @@ - (void)testGetPendingTransactions {
@"transactionTimeStamp" : @([NSDate date].timeIntervalSince1970),
@"originalTransaction" : [NSNull null],
};
queue.transactions = @[ [[SKPaymentTransactionStub alloc] initWithMap:transactionMap] ];
queue.transactions = @[ [[TestSKPaymentTransaction alloc] initWithMap:transactionMap] ];
self.plugin.paymentQueueHandler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:nil
transactionRemoved:nil
Expand All @@ -638,8 +638,8 @@ - (void)testGetPendingTransactions {
updatedDownloads:nil
transactionCache:cache];
FlutterError *error;
SKPaymentTransactionStub *original =
[[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
TestSKPaymentTransaction *original =
[[TestSKPaymentTransaction alloc] initWithMap:transactionMap];

SKPaymentTransactionMessage *originalPigeon =
[FIAObjectTranslator convertTransactionToPigeon:original];
Expand Down Expand Up @@ -693,7 +693,7 @@ - (void)testRegisterPaymentQueueDelegate {
updatedDownloads:nil
transactionCache:cache];

self.plugin.registrar = [[FlutterPluginRegistrarStub alloc] init];
self.plugin.registrar = [[TestFlutterPluginRegistrar alloc] init];

// Verify the delegate is nil before we register one.
XCTAssertNil(self.plugin.paymentQueueHandler.delegate);
Expand All @@ -719,7 +719,7 @@ - (void)testRemovePaymentQueueDelegate {
updatedDownloads:nil
transactionCache:cache];

self.plugin.registrar = [[FlutterPluginRegistrarStub alloc] init];
self.plugin.registrar = [[TestFlutterPluginRegistrar alloc] init];

// Verify the delegate is nil before we register one.
XCTAssertNil(self.plugin.paymentQueueHandler.delegate);
Expand Down Expand Up @@ -767,8 +767,8 @@ - (void)testHandleTransactionsUpdated {
// (TODO: louisehsu) Change this to inject the channel, like requestHandler
plugin.transactionObserverCallbackChannel = testChannel;

SKPaymentTransactionStub *paymentTransaction =
[[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
TestSKPaymentTransaction *paymentTransaction =
[[TestSKPaymentTransaction alloc] initWithMap:transactionMap];
NSArray *array = [NSArray arrayWithObjects:paymentTransaction, nil];
NSMutableArray *maps = [NSMutableArray new];
[maps addObject:[FIAObjectTranslator getMapFromSKPaymentTransaction:paymentTransaction]];
Expand All @@ -794,8 +794,8 @@ - (void)testHandleTransactionsRemoved {
return [[DefaultRequestHandler alloc]
initWithRequestHandler:[[FIAPRequestHandler alloc] initWithRequest:request]];
}];
SKPaymentTransactionStub *paymentTransaction =
[[SKPaymentTransactionStub alloc] initWithMap:transactionMap];
TestSKPaymentTransaction *paymentTransaction =
[[TestSKPaymentTransaction alloc] initWithMap:transactionMap];
NSArray *array = [NSArray arrayWithObjects:paymentTransaction, nil];
NSMutableArray *maps = [NSMutableArray new];
[maps addObject:[FIAObjectTranslator getMapFromSKPaymentTransaction:paymentTransaction]];
Expand Down Expand Up @@ -880,7 +880,7 @@ - (void)testShouldAddStorePayment {
};

SKMutablePayment *payment = [FIAObjectTranslator getSKMutablePaymentFromMap:paymentMap];
SKProductStub *product = [[SKProductStub alloc] initWithMap:productMap];
TestSKProduct *product = [[TestSKProduct alloc] initWithMap:productMap];

InAppPurchasePlugin *plugin = [[InAppPurchasePluginStub alloc]
initWithReceiptManager:self.receiptManagerStub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ - (void)finishTransaction:(SKPaymentTransaction *)transaction {
}

- (void)addPayment:(SKPayment *_Nonnull)payment {
SKPaymentTransactionStub *transaction =
[[SKPaymentTransactionStub alloc] initWithState:self.testState payment:payment];
TestSKPaymentTransaction *transaction =
[[TestSKPaymentTransaction alloc] initWithState:self.testState payment:payment];
[self.observer paymentQueue:self.realQueue updatedTransactions:@[ transaction ]];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ - (void)testTransactionPurchased {
[self expectationWithDescription:@"expect to get purchased transcation."];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStatePurchased;
__block SKPaymentTransactionStub *tran;
__block TestSKPaymentTransaction *tran;
FIAPaymentQueueHandler *handler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
SKPaymentTransaction *transaction = transactions[0];
tran = (SKPaymentTransactionStub *)transaction;
tran = (TestSKPaymentTransaction *)transaction;
[expectation fulfill];
}
transactionRemoved:nil
Expand All @@ -63,7 +63,7 @@ - (void)testTransactionPurchased {
updatedDownloads:nil
transactionCache:[[TestTransactionCache alloc] init]];
SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand All @@ -76,11 +76,11 @@ - (void)testTransactionFailed {
[self expectationWithDescription:@"expect to get failed transcation."];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStateFailed;
__block SKPaymentTransactionStub *tran;
__block TestSKPaymentTransaction *tran;
FIAPaymentQueueHandler *handler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
SKPaymentTransaction *transaction = transactions[0];
tran = (SKPaymentTransactionStub *)transaction;
tran = (TestSKPaymentTransaction *)transaction;
[expectation fulfill];
}
transactionRemoved:nil
Expand All @@ -93,7 +93,7 @@ - (void)testTransactionFailed {
transactionCache:[[TestTransactionCache alloc] init]];

SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand All @@ -106,11 +106,11 @@ - (void)testTransactionRestored {
[self expectationWithDescription:@"expect to get restored transcation."];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStateRestored;
__block SKPaymentTransactionStub *tran;
__block TestSKPaymentTransaction *tran;
FIAPaymentQueueHandler *handler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
SKPaymentTransaction *transaction = transactions[0];
tran = (SKPaymentTransactionStub *)transaction;
tran = (TestSKPaymentTransaction *)transaction;
[expectation fulfill];
}
transactionRemoved:nil
Expand All @@ -123,7 +123,7 @@ - (void)testTransactionRestored {
transactionCache:[[TestTransactionCache alloc] init]];

SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand All @@ -136,11 +136,11 @@ - (void)testTransactionPurchasing {
[self expectationWithDescription:@"expect to get purchasing transcation."];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStatePurchasing;
__block SKPaymentTransactionStub *tran;
__block TestSKPaymentTransaction *tran;
FIAPaymentQueueHandler *handler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
SKPaymentTransaction *transaction = transactions[0];
tran = (SKPaymentTransactionStub *)transaction;
tran = (TestSKPaymentTransaction *)transaction;
[expectation fulfill];
}
transactionRemoved:nil
Expand All @@ -153,7 +153,7 @@ - (void)testTransactionPurchasing {
transactionCache:[[TestTransactionCache alloc] init]];

SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand All @@ -166,11 +166,11 @@ - (void)testTransactionDeferred {
[self expectationWithDescription:@"expect to get deffered transcation."];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStateDeferred;
__block SKPaymentTransactionStub *tran;
__block TestSKPaymentTransaction *tran;
FIAPaymentQueueHandler *handler = [[FIAPaymentQueueHandler alloc] initWithQueue:queue
transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
SKPaymentTransaction *transaction = transactions[0];
tran = (SKPaymentTransactionStub *)transaction;
tran = (TestSKPaymentTransaction *)transaction;
[expectation fulfill];
}
transactionRemoved:nil
Expand All @@ -182,7 +182,7 @@ - (void)testTransactionDeferred {
updatedDownloads:nil
transactionCache:[[TestTransactionCache alloc] init]];
SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand Down Expand Up @@ -213,7 +213,7 @@ - (void)testFinishTransaction {
updatedDownloads:nil
transactionCache:[[TestTransactionCache alloc] init]];
SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];
[handler startObservingPaymentQueue];
[handler addPayment:payment];
[self waitForExpectations:@[ expectation ] timeout:5];
Expand Down Expand Up @@ -328,7 +328,7 @@ - (void)testStartObservingPaymentQueueShouldProcessTransactionsForItemsInCache {
XCTestExpectation *updateDownloadsExpectation =
[self expectationWithDescription:
@"downloadsUpdated callback should be called with one transaction."];
SKPaymentTransaction *mockTransaction = [[SKPaymentTransactionStub alloc] init];
SKPaymentTransaction *mockTransaction = [[TestSKPaymentTransaction alloc] init];
SKDownload *mockDownload = [[SKDownload alloc] init];
TestTransactionCache *mockCache = [[TestTransactionCache alloc] init];
FIAPaymentQueueHandler *handler =
Expand Down Expand Up @@ -414,7 +414,7 @@ - (void)testTransactionsShouldBeCachedWhenNotObserving {
transactionCache:mockCache];

SKPayment *payment =
[SKPayment paymentWithProduct:[[SKProductStub alloc] initWithMap:self.productResponseMap]];
[SKPayment paymentWithProduct:[[TestSKProduct alloc] initWithMap:self.productResponseMap]];

__block NSInteger TransactionCacheKeyUpdatedTransactionsInvoked = 0;
__block NSInteger TransactionCacheKeyUpdatedDownloadsInvoked = 0;
Expand Down Expand Up @@ -453,7 +453,7 @@ - (void)testTransactionsShouldNotBeCachedWhenObserving {
XCTestExpectation *updateDownloadsExpectation =
[self expectationWithDescription:
@"downloadsUpdated callback should be called with one transaction."];
SKPaymentTransaction *mockTransaction = [[SKPaymentTransactionStub alloc] init];
SKPaymentTransaction *mockTransaction = [[TestSKPaymentTransaction alloc] init];
SKDownload *mockDownload = [[SKDownload alloc] init];
TestPaymentQueue *queue = [[TestPaymentQueue alloc] init];
queue.testState = SKPaymentTransactionStatePurchased;
Expand All @@ -479,9 +479,9 @@ - (void)testTransactionsShouldNotBeCachedWhenObserving {
transactionCache:mockCache];

[handler startObservingPaymentQueue];
[handler paymentQueue:[[SKPaymentQueueStub alloc] init] updatedTransactions:@[ mockTransaction ]];
[handler paymentQueue:[[SKPaymentQueueStub alloc] init] removedTransactions:@[ mockTransaction ]];
[handler paymentQueue:[[SKPaymentQueueStub alloc] init] updatedDownloads:@[ mockDownload ]];
[handler paymentQueue:[[TestSKPaymentQueue alloc] init] updatedTransactions:@[ mockTransaction ]];
[handler paymentQueue:[[TestSKPaymentQueue alloc] init] removedTransactions:@[ mockTransaction ]];
[handler paymentQueue:[[TestSKPaymentQueue alloc] init] updatedDownloads:@[ mockDownload ]];

[self waitForExpectations:@[
updateTransactionsExpectation, removeTransactionsExpectation, updateDownloadsExpectation
Expand Down
Loading