CartMutationsTest updated

This commit is contained in:
Geoff Taylor
2020-05-11 21:22:28 -04:00
committed by Geoff Taylor
parent b6a2090abc
commit a74c38d47e
+7 -2
View File
@@ -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 )
)
)
);