From 75650e0c14886d5632d4af31c82fd55e88d92e62 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Wed, 16 Aug 2023 15:53:56 -0700 Subject: [PATCH] `Integration Tests`: improved `testCanPurchaseMultipleSubscriptions` (#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. --- Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift b/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift index 0f93a7e1e6..a1cbc9b388 100644 --- a/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift +++ b/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift @@ -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