Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
The label was moved to a hook so we need to init it in test
  • Loading branch information
mmaymo committed Jan 20, 2025
1 parent 0b2383e commit c4ef709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/php/Functional/Shared/SurchargeHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -106,6 +107,7 @@ public function addsSurchargeFeesInOrderPayPage()
[new Surcharge()],
['canProcessOrder', 'canProcessGateway', 'orderRemoveFee', 'orderAddFee']
)->getMock();
$testee->initializeGatewayFeeLabel();

$testee->expects($this->once())
->method('canProcessOrder')
Expand Down

0 comments on commit c4ef709

Please sign in to comment.