diff --git a/tests/Tools/HelperTrait/ProductTrait.php b/tests/Tools/HelperTrait/ProductTrait.php index c51755fe6c..4f67d19fbd 100644 --- a/tests/Tools/HelperTrait/ProductTrait.php +++ b/tests/Tools/HelperTrait/ProductTrait.php @@ -487,7 +487,12 @@ protected function generate_mock_image_attachment( int $product_id, string $imag * @return WCProductAdapter The adapted products with the rules applied. */ protected function generate_attribute_mapping_adapted_product( $rules, $categories = [] ) { - $product = WC_Helper_Product::create_simple_product( false ); + $product = WC_Helper_Product::create_simple_product( + false, + [ + 'sku' => 'Mapped Product SKU', + ] + ); $attributes = [ WC_Helper_Product::create_product_attribute_object( 'size', [ 's', 'xs' ] ),