From 84e3bcdb5cc6b84afe94746afc694de1e8ff6f17 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Mon, 31 Jan 2022 12:31:13 +0100 Subject: [PATCH] Fix phpunit --- tests/PHPUnit/WcGateway/Gateway/WcGatewayTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/PHPUnit/WcGateway/Gateway/WcGatewayTest.php b/tests/PHPUnit/WcGateway/Gateway/WcGatewayTest.php index 0df1b0e99..3885f59e9 100644 --- a/tests/PHPUnit/WcGateway/Gateway/WcGatewayTest.php +++ b/tests/PHPUnit/WcGateway/Gateway/WcGatewayTest.php @@ -189,6 +189,7 @@ class WcGatewayTest extends TestCase ->andReturnFalse(); $this->orderProcessor ->expects('last_error') + ->twice() ->andReturn($lastError); $this->subscriptionHelper->shouldReceive('has_subscription')->with($orderId)->andReturn(true); $this->subscriptionHelper->shouldReceive('is_subscription_change_payment')->andReturn(true);