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
|
@ -105,7 +105,7 @@ class VaultedCreditCardHandlerTest extends TestCase
|
|||
$customer = Mockery::mock(WC_Customer::class);
|
||||
|
||||
$payer = Mockery::mock(Payer::class);
|
||||
$this->payerFactory->shouldReceive('from_customer')
|
||||
$this->payerFactory->shouldReceive('from_wc_order')
|
||||
->andReturn($payer);
|
||||
$this->shippingPreferenceFactory->shouldReceive('from_state')
|
||||
->andReturn('some_preference');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue