Skip to content

Commit 948db6d

Browse files
committed
Use makeForTesting to avoid implying singleton use
1 parent 7547323 commit 948db6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModelTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModelTests:
1313
private var sut: InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModel!
1414

1515
override func setUp() {
16-
stores = MockStoresManager(sessionManager: .testingInstance)
16+
stores = MockStoresManager(sessionManager: .makeForTesting())
1717
stores.sessionManager.setStoreId(12345)
1818
noticePresenter = MockNoticePresenter()
1919
sut = InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModel(stores: stores, noticePresenter: noticePresenter, completion: {})

0 commit comments

Comments
 (0)