Be sure to add the new product for cleanup later

This commit is contained in:
Gerhard Potgieter 2017-10-12 13:33:56 +02:00
parent 91aa76a51b
commit 9eee5afc2c
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class WC_Tests_Totals extends WC_Unit_Test_Case {
$this->ids['tax_rate_ids'][] = $tax_rate_id;
$this->ids['products'][] = $product;
$this->ids['products'][] = $product2;
$this->ids['products'][] = $product3;
$this->ids['coupons'][] = $coupon;
WC()->cart->add_to_cart( $product->get_id(), 1 );