Fix the coupon data store delete unit test, you should not have been able to create a new datastore from a deleted coupon ID. See product data store tests are reference for this.

This commit is contained in:
Gerhard Potgieter 2018-05-24 12:26:36 +02:00
parent 07c18b59f0
commit 9bc6ca5df3
1 changed files with 0 additions and 1 deletions

View File

@ -40,7 +40,6 @@ class WC_Tests_Coupon_Data_Store extends WC_Unit_Test_Case {
$coupon_id = $coupon->get_id();
$this->assertNotEquals( 0, $coupon_id );
$coupon->delete( true );
$coupon = new WC_Coupon( $coupon_id );
$this->assertEquals( 0, $coupon->get_id() );
}