mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix merge conflicts
This commit is contained in:
commit
e3a793e3e5
12 changed files with 236 additions and 113 deletions
|
@ -912,6 +912,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -1014,6 +1015,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -1090,6 +1092,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
@ -1174,6 +1177,7 @@ class OrderEndpointTest extends TestCase
|
|||
$purchaseUnit
|
||||
->expects('to_array')
|
||||
->andReturn(['singlePurchaseUnit']);
|
||||
$purchaseUnit->expects('shipping')->andReturn(true);
|
||||
|
||||
expect('wp_remote_get')
|
||||
->andReturnUsing(
|
||||
|
|
|
@ -8,6 +8,9 @@ use Psr\Container\ContainerInterface;
|
|||
use Psr\Log\LoggerInterface;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentsEndpoint;
|
||||
use Psr\Log\NullLogger;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Entity\Capture;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Entity\CaptureStatus;
|
||||
use WooCommerce\PayPalCommerce\Onboarding\Environment;
|
||||
use WooCommerce\PayPalCommerce\Onboarding\State;
|
||||
use WooCommerce\PayPalCommerce\Session\SessionHandler;
|
||||
|
|
|
@ -159,7 +159,8 @@ class OrderProcessorTest extends TestCase
|
|||
$wcOrder
|
||||
->expects('update_status')
|
||||
->with('on-hold', 'Awaiting payment.');
|
||||
|
||||
$wcOrder->expects('set_transaction_id')
|
||||
->with($transactionId);
|
||||
|
||||
$this->assertTrue($testee->process($wcOrder));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue