Skip to content

Commit

Permalink
Integration Tests: improved testCanPurchaseMultipleSubscriptions
Browse files Browse the repository at this point in the history
I was looking into #3020, and saw that we already have this test to cover downgrades. I added an extra assertion to verify entitlements.
I also ran this test on iOS 17 and it passes.
  • Loading branch information
NachoSoto committed Aug 16, 2023
1 parent 93883e7 commit 94e3392
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ class StoreKit1IntegrationTests: BaseStoreKitIntegrationTests {
_ = try await self.purchases.purchase(product: product1)
let info = try await self.purchases.purchase(product: product2).customerInfo

try await verifyEntitlementWentThrough(info)

expect(info.allPurchasedProductIdentifiers) == [
product1.productIdentifier,
product2.productIdentifier
Expand Down

0 comments on commit 94e3392

Please sign in to comment.