diff --git a/assets/js/data/payment/test/selectors.js b/assets/js/data/payment/test/selectors.js index 23a1e2e231c..284081c2bfb 100644 --- a/assets/js/data/payment/test/selectors.js +++ b/assets/js/data/payment/test/selectors.js @@ -24,7 +24,6 @@ import { CheckoutExpressPayment, SavedPaymentMethodOptions, } from '../../../blocks/cart-checkout-shared/payment-methods'; -import { checkPaymentMethodsCanPay } from '../check-payment-methods'; import { defaultCartState } from '../../cart/default-state'; const originalSelect = jest.requireActual( '@wordpress/data' ).select; @@ -132,8 +131,9 @@ const registerMockPaymentMethods = ( savedCards = true ) => { }, } ); } ); - checkPaymentMethodsCanPay(); - checkPaymentMethodsCanPay( true ); + wpDataFunctions + .dispatch( PAYMENT_STORE_KEY ) + .__internalInitializePaymentStore(); }; const resetMockPaymentMethods = () => {