Skip to content

Commit 38e94a5

Browse files
authored
Fix unit tests related to SEPA (#3857)
1 parent 53e7591 commit 38e94a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/phpunit/payment-methods/test-class-wc-stripe-upe-payment-gateway.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ public function set_up() {
119119

120120
update_option( WC_Stripe_Feature_Flags::LPM_ACH_FEATURE_FLAG_NAME, 'yes' );
121121

122+
$stripe_settings = WC_Stripe_Helper::get_stripe_settings();
123+
$stripe_settings['sepa_tokens_for_other_methods'] = 'yes';
124+
WC_Stripe_Helper::update_main_stripe_settings( $stripe_settings );
125+
122126
$mock_account = $this->getMockBuilder( 'WC_Stripe_Account' )
123127
->disableOriginalConstructor()
124128
->getMock();

0 commit comments

Comments
 (0)