Fix unit tests

This commit is contained in:
dinamiko 2021-08-10 17:39:54 +02:00
parent 0452171869
commit efcbf5dd7d

View file

@ -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);