From 4a4aa84e266d78f3bfc03854deaa94c90c225964 Mon Sep 17 00:00:00 2001 From: Caleb Burks <19caleb95@gmail.com> Date: Thu, 22 Feb 2018 15:06:53 -0500 Subject: [PATCH] Add a test --- tests/unit-tests/coupon/data-store.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit-tests/coupon/data-store.php b/tests/unit-tests/coupon/data-store.php index 82eebd3baf9..f4075926139 100644 --- a/tests/unit-tests/coupon/data-store.php +++ b/tests/unit-tests/coupon/data-store.php @@ -80,6 +80,7 @@ class WC_Tests_Coupon_Data_Store extends WC_Unit_Test_Case { $coupon = new WC_Coupon(); $coupon->set_code( $code ); $coupon->set_description( 'This is a test coupon.' ); + $coupon->set_amount( '' ); $coupon->set_usage_count( 5 ); $coupon->save(); $coupon_id = $coupon->get_id(); @@ -88,6 +89,7 @@ class WC_Tests_Coupon_Data_Store extends WC_Unit_Test_Case { $this->assertEquals( 5, $coupon_read->get_usage_count() ); $this->assertEquals( $code, $coupon_read->get_code() ); + $this->assertEquals( 0, $coupon->get_amount() ); $this->assertEquals( 'This is a test coupon.', $coupon_read->get_description() ); }