Fix tests
This commit is contained in:
parent
052be04ee7
commit
698c3b9e1b
|
@ -25,6 +25,7 @@ class WC_Tests_Discounts extends WC_Unit_Test_Case {
|
|||
'discounted_price' => 0,
|
||||
);
|
||||
$item->key = $cart_item_key;
|
||||
$item->cart_item = $cart_item;
|
||||
$item->quantity = $cart_item['quantity'];
|
||||
$item->price = $cart_item['data']->get_price() * $precision * $cart_item['quantity'];
|
||||
$item->product = $cart_item['data'];
|
||||
|
|
Loading…
Reference in New Issue