Fix phpunit

This commit is contained in:
dinamiko 2022-01-31 12:31:13 +01:00
parent b98f59b4ed
commit 84e3bcdb5c

View file

@ -189,6 +189,7 @@ class WcGatewayTest extends TestCase
->andReturnFalse(); ->andReturnFalse();
$this->orderProcessor $this->orderProcessor
->expects('last_error') ->expects('last_error')
->twice()
->andReturn($lastError); ->andReturn($lastError);
$this->subscriptionHelper->shouldReceive('has_subscription')->with($orderId)->andReturn(true); $this->subscriptionHelper->shouldReceive('has_subscription')->with($orderId)->andReturn(true);
$this->subscriptionHelper->shouldReceive('is_subscription_change_payment')->andReturn(true); $this->subscriptionHelper->shouldReceive('is_subscription_change_payment')->andReturn(true);