mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix unit tests
This commit is contained in:
parent
3295488b29
commit
b5748b2911
2 changed files with 4 additions and 15 deletions
|
@ -876,6 +876,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -978,6 +979,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -1051,6 +1053,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -1134,6 +1137,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue