From a74c38d47ed687feb98f574ffc595e7c79791c29 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Fri, 27 Mar 2020 13:36:53 -0400 Subject: [PATCH] CartMutationsTest updated --- tests/wpunit/CartMutationsTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/wpunit/CartMutationsTest.php b/tests/wpunit/CartMutationsTest.php index 7e6b6272..9f55fd07 100644 --- a/tests/wpunit/CartMutationsTest.php +++ b/tests/wpunit/CartMutationsTest.php @@ -716,12 +716,17 @@ class CartMutationsTest extends \Codeception\TestCase\WPTestCase { $cart = WC()->cart; // Create products. - $product_id = $this->product->create_simple(); + $product_id = $this->product->create_simple( + array( 'regular_price' => 100 ) + ); // Create coupon. $coupon_code = wc_get_coupon_code_by_id( $this->coupon->create( - array( 'product_ids' => array( $product_id ) ) + array( + 'amount' => 0.5, + 'product_ids' => array( $product_id ) + ) ) );