mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix phpunit tests
This commit is contained in:
parent
7a6508fc1b
commit
03d2eed36b
1 changed files with 9 additions and 0 deletions
|
@ -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}'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue