mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Ensure purchase units contains tax rate and shipping when creating the order
This commit is contained in:
parent
158f900282
commit
4978107554
4 changed files with 56 additions and 3 deletions
|
@ -116,7 +116,9 @@ class PayUponInvoiceOrderEndpointTest extends TestCase
|
|||
$this->fraudnet->shouldReceive('session_id')->andReturn('');
|
||||
|
||||
$purchaseUnit = Mockery::mock(PurchaseUnit::class);
|
||||
$purchaseUnit->shouldReceive('to_array')->andReturn([]);
|
||||
$purchaseUnit->shouldReceive('to_array')->andReturn([
|
||||
'items' => [],
|
||||
]);
|
||||
$items = [$purchaseUnit];
|
||||
|
||||
$paymentSource = Mockery::mock(PaymentSource::class);
|
||||
|
@ -134,7 +136,9 @@ class PayUponInvoiceOrderEndpointTest extends TestCase
|
|||
{
|
||||
$this->fraudnet->shouldReceive('session_id')->andReturn('');
|
||||
$purchaseUnit = Mockery::mock(PurchaseUnit::class);
|
||||
$purchaseUnit->shouldReceive('to_array')->andReturn([]);
|
||||
$purchaseUnit->shouldReceive('to_array')->andReturn([
|
||||
'items' => [],
|
||||
]);
|
||||
$items = [$purchaseUnit];
|
||||
$paymentSource = Mockery::mock(PaymentSource::class);
|
||||
$paymentSource->shouldReceive('to_array')->andReturn([]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue