mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge branch 'trunk' into PCP-195-plugin-conflict-blocking-line-it
This commit is contained in:
commit
69b46c33d4
4 changed files with 16 additions and 2 deletions
|
@ -94,7 +94,7 @@ class IdentityTokenTest extends TestCase
|
|||
$this->bearer
|
||||
->expects('bearer')->andReturn($token);
|
||||
|
||||
expect('wp_remote_get')->andReturn();
|
||||
expect('wp_remote_get')->andReturn(['body' => '',]);
|
||||
expect('is_wp_error')->andReturn(false);
|
||||
expect('wp_remote_retrieve_response_code')->andReturn(500);
|
||||
$this->logger->shouldReceive('log');
|
||||
|
|
|
@ -169,6 +169,7 @@ class WcGatewayTest extends TestCase
|
|||
$subscriptionHelper = Mockery::mock(SubscriptionHelper::class);
|
||||
$subscriptionHelper->shouldReceive('has_subscription')->with($orderId)->andReturn(true);
|
||||
$subscriptionHelper->shouldReceive('is_subscription_change_payment')->andReturn(true);
|
||||
$wcOrder->shouldReceive('update_status')->andReturn(true);
|
||||
|
||||
$testee = new PayPalGateway(
|
||||
$settingsRenderer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue