diff --git a/tests/php/Functional/Shared/SurchargeHandlerTest.php b/tests/php/Functional/Shared/SurchargeHandlerTest.php index bbf43be0..764616cd 100644 --- a/tests/php/Functional/Shared/SurchargeHandlerTest.php +++ b/tests/php/Functional/Shared/SurchargeHandlerTest.php @@ -59,6 +59,7 @@ public function addsSurchargeFeesInCheckout(){ [new Surcharge()], ['canProcessOrder', 'canProcessGateway', 'orderRemoveFee', 'orderAddFee'] )->getMock(); + $testee->initializeGatewayFeeLabel(); expect('mollieWooCommerceIsCheckoutContext')->andReturn(true); expect('wc_tax_enabled')->andReturn(false); expect('WC')->andReturn($this->wooCommerce()); @@ -106,6 +107,7 @@ public function addsSurchargeFeesInOrderPayPage() [new Surcharge()], ['canProcessOrder', 'canProcessGateway', 'orderRemoveFee', 'orderAddFee'] )->getMock(); + $testee->initializeGatewayFeeLabel(); $testee->expects($this->once()) ->method('canProcessOrder')