Fix phpunit tests

This commit is contained in:
dinamiko 2021-07-12 17:31:07 +02:00
parent 7a6508fc1b
commit 03d2eed36b

View file

@ -432,6 +432,9 @@ class OrderEndpointTest extends TestCase
$orderToUpdate
->shouldReceive('id')
->andReturn($orderId);
$orderToUpdate
->shouldReceive('purchase_units')
->andReturn([]);
$orderToCompare = Mockery::mock(Order::class);
$rawResponse = ['body' => '{"is_correct":true}'];
@ -526,6 +529,9 @@ class OrderEndpointTest extends TestCase
$orderToUpdate
->shouldReceive('id')
->andReturn($orderId);
$orderToUpdate
->shouldReceive('purchase_units')
->andReturn([]);
$orderToCompare = Mockery::mock(Order::class);
$rawResponse = ['body' => '{"has_error":true}'];
@ -614,6 +620,9 @@ class OrderEndpointTest extends TestCase
$orderToUpdate
->shouldReceive('id')
->andReturn($orderId);
$orderToUpdate
->shouldReceive('purchase_units')
->andReturn([]);
$orderToCompare = Mockery::mock(Order::class);
$rawResponse = ['body' => '{"is_correct":true}'];