mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add filters woocommerce_paypal_payments_cart_line_item_name and woocommerce_paypal_payments_order_line_item_name.
This commit is contained in:
parent
895cc486d4
commit
b8eed0f324
5 changed files with 84 additions and 2 deletions
|
@ -57,6 +57,7 @@ class OrderProcessorTest extends TestCase
|
|||
->andReturn($payments);
|
||||
|
||||
$wcOrder = Mockery::mock(\WC_Order::class);
|
||||
$wcOrder->expects('get_items')->andReturn([]);
|
||||
$wcOrder->expects('update_meta_data')
|
||||
->with(PayPalGateway::ORDER_PAYMENT_MODE_META_KEY, 'live');
|
||||
$wcOrder->shouldReceive('get_id')->andReturn(1);
|
||||
|
@ -193,7 +194,8 @@ class OrderProcessorTest extends TestCase
|
|||
->andReturn($payments);
|
||||
|
||||
$wcOrder = Mockery::mock(\WC_Order::class);
|
||||
$orderStatus = Mockery::mock(OrderStatus::class);
|
||||
$wcOrder->expects('get_items')->andReturn([]);
|
||||
$orderStatus = Mockery::mock(OrderStatus::class);
|
||||
$orderStatus
|
||||
->shouldReceive('is')
|
||||
->with(OrderStatus::APPROVED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue