From 94e3392ba341a54d203751990b880133d4b26c62 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Wed, 16 Aug 2023 10:54:45 -0700 Subject: [PATCH] `Integration Tests`: improved `testCanPurchaseMultipleSubscriptions` 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 9edd609f83..9cef529692 100644 --- a/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift +++ b/Tests/BackendIntegrationTests/StoreKitIntegrationTests.swift @@ -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