From 03d2eed36b293e5901fc5ea4127911d36e403571 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Mon, 12 Jul 2021 17:31:07 +0200 Subject: [PATCH] Fix phpunit tests --- tests/PHPUnit/ApiClient/Endpoint/OrderEndpointTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/PHPUnit/ApiClient/Endpoint/OrderEndpointTest.php b/tests/PHPUnit/ApiClient/Endpoint/OrderEndpointTest.php index cbfba53b6..17ebf857b 100644 --- a/tests/PHPUnit/ApiClient/Endpoint/OrderEndpointTest.php +++ b/tests/PHPUnit/ApiClient/Endpoint/OrderEndpointTest.php @@ -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}'];