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:
parent
07c18b59f0
commit
9bc6ca5df3
|
@ -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() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue