mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix unit tests
This commit is contained in:
parent
0452171869
commit
efcbf5dd7d
1 changed files with 9 additions and 0 deletions
|
@ -158,6 +158,9 @@ class ItemFactoryTest extends TestCase
|
|||
->expects('get_item_subtotal')
|
||||
->with($item, false)
|
||||
->andReturn(1);
|
||||
$order
|
||||
->expects('get_fees')
|
||||
->andReturn([]);
|
||||
|
||||
$result = $testee->from_wc_order($order);
|
||||
$this->assertCount(1, $result);
|
||||
|
@ -218,6 +221,9 @@ class ItemFactoryTest extends TestCase
|
|||
->expects('get_item_subtotal')
|
||||
->with($item, false)
|
||||
->andReturn(1);
|
||||
$order
|
||||
->expects('get_fees')
|
||||
->andReturn([]);
|
||||
|
||||
$result = $testee->from_wc_order($order);
|
||||
$item = current($result);
|
||||
|
@ -273,6 +279,9 @@ class ItemFactoryTest extends TestCase
|
|||
->expects('get_item_subtotal')
|
||||
->with($item, false)
|
||||
->andReturn(1);
|
||||
$order
|
||||
->expects('get_fees')
|
||||
->andReturn([]);
|
||||
|
||||
$result = $testee->from_wc_order($order);
|
||||
$item = current($result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue