diff --git a/tests/unit-tests/templates/functions.php b/tests/unit-tests/templates/functions.php index 266908a8b5e..1f2fb58961a 100644 --- a/tests/unit-tests/templates/functions.php +++ b/tests/unit-tests/templates/functions.php @@ -37,5 +37,7 @@ class WC_Tests_Template_Functions extends WC_Unit_Test_Case { ); $this->assertEquals( $expected, array_values( wc_get_product_class( 'foo', $product ) ) ); + + $product->delete( true ); } }