Skip to content

Commit

Permalink
Integration Tests: improved testCanPurchaseMultipleSubscriptions (#…
Browse files Browse the repository at this point in the history
…3025)

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 authored Aug 16, 2023
1 parent 41b3505 commit 75650e0
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 @@ -186,6 +186,8 @@ class StoreKit1IntegrationTests: BaseStoreKitIntegrationTests {
_ = try await self.purchases.purchase(product: product1)
let info = try await self.purchases.purchase(product: product2).customerInfo

try await self.verifyEntitlementWentThrough(info)

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

0 comments on commit 75650e0

Please sign in to comment.