Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrationTests: explicit StoreKit 1 mode #2636

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class OfflineStoreKit2IntegrationTests: OfflineStoreKit1IntegrationTests {

class OfflineStoreKit1IntegrationTests: BaseOfflineStoreKitIntegrationTests {

override class var storeKit2Setting: StoreKit2Setting { return .disabled }

override func setUp() async throws {
try await super.setUp()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class StoreKit2ObserverModeIntegrationTests: StoreKit1ObserverModeIntegrationTes

class StoreKit1ObserverModeIntegrationTests: BaseStoreKitObserverModeIntegrationTests {

override class var storeKit2Setting: StoreKit2Setting { return .disabled }

func testPurchaseOutsideTheAppPostsReceipt() async throws {
try self.testSession.buyProduct(productIdentifier: Self.monthlyNoIntroProductID)

Expand All @@ -83,6 +85,8 @@ class StoreKit2ObserverModeWithExistingPurchasesTests: StoreKit1ObserverModeWith
@available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *)
class StoreKit1ObserverModeWithExistingPurchasesTests: BaseStoreKitObserverModeIntegrationTests {

override class var storeKit2Setting: StoreKit2Setting { return .disabled }

// MARK: - Transactions observation

private static var transactionsObservation: Task<Void, Never>?
Expand Down