Skip to content

Commit

Permalink
Fix tests + remove inclusion of deleted file
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrosa committed Nov 26, 2024
1 parent 14d3018 commit cf326f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tests/phpunit/test-class-wc-stripe-upe-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,6 @@ public function test_set_payment_method_title_for_order_custom_title() {
*/
public function test_set_payment_method_title_for_order_ECE_title() {
$order = WC_Helper_Order::create_order();
update_option( WC_Stripe_Feature_Flags::ECE_FEATURE_FLAG_NAME, 'yes' );

// GOOGLE PAY
$mock_ece_payment_method = (object) [
Expand Down Expand Up @@ -2454,8 +2453,5 @@ public function test_set_payment_method_title_for_order_ECE_title() {

// No wallet type should default to Credit / Debit Card.
$this->assertEquals( 'Credit / Debit Card', $order->get_payment_method_title() );

// Unset the feature flag.
delete_option( WC_Stripe_Feature_Flags::ECE_FEATURE_FLAG_NAME );
}
}
1 change: 0 additions & 1 deletion woocommerce-gateway-stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ public function init() {
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-gateway-stripe-multibanco.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-gateway-stripe-boleto.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-gateway-stripe-oxxo.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-stripe-payment-request.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-stripe-express-checkout-element.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-stripe-express-checkout-helper.php';
require_once dirname( __FILE__ ) . '/includes/payment-methods/class-wc-stripe-express-checkout-ajax-handler.php';
Expand Down

0 comments on commit cf326f9

Please sign in to comment.