mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix phpunit
This commit is contained in:
parent
7e57c2ccc3
commit
8e17e35987
3 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,7 @@ class PayUponInvoiceGatewayTest extends TestCase
|
|||
$wcOrder = Mockery::mock(WC_Order::class);
|
||||
$wcOrder->shouldReceive('update_meta_data');
|
||||
$wcOrder->shouldReceive('update_status');
|
||||
$wcOrder->shouldReceive('save');
|
||||
when('wc_get_order')->justReturn($wcOrder);
|
||||
|
||||
$order = Mockery::mock(Order::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue