Fix tests

This commit is contained in:
Mike Jolley 2017-07-26 11:32:10 +01:00
parent 052be04ee7
commit 698c3b9e1b
1 changed files with 1 additions and 0 deletions

View File

@ -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'];