mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Get payer from order instead of customer
This commit is contained in:
parent
0e24b1d0f8
commit
76a81b535b
4 changed files with 5 additions and 9 deletions
|
@ -90,6 +90,7 @@ class CreditCardGatewayTest extends TestCase
|
|||
public function testProcessPaymentVaultedCard()
|
||||
{
|
||||
$wc_order = Mockery::mock(WC_Order::class);
|
||||
$wc_order->shouldReceive('get_customer_id')->andReturn(1);
|
||||
when('wc_get_order')->justReturn($wc_order);
|
||||
|
||||
$savedCreditCard = 'abc123';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue