diff --git a/tests/Tools/HelperTrait/ProductTrait.php b/tests/Tools/HelperTrait/ProductTrait.php index 8f96aafe8a..19edb771cb 100644 --- a/tests/Tools/HelperTrait/ProductTrait.php +++ b/tests/Tools/HelperTrait/ProductTrait.php @@ -525,7 +525,7 @@ protected function generate_attribute_mapping_adapted_product( $rules, $categori * @return WCProductAdapter The adapted products with the rules applied. */ protected function generate_attribute_mapping_adapted_product_variant( $rules, $categories = [] ) { - $variable = WC_Helper_Product::create_variation_product(); + $variable = WC_Helper_Product::create_variation_product(); if ( ! empty( $categories ) ) { $variable->set_category_ids( $categories ); } diff --git a/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php b/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php index 6a31ca04d3..05a6d10427 100644 --- a/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php +++ b/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php @@ -253,14 +253,14 @@ public function test_maps_rules_product_cat() { 'source' => 'taxonomy:product_cat', 'category_condition_type' => 'ALL', 'categories' => '', - ] + ], ]; $category_1 = wp_insert_term( 'Zulu Category', 'product_cat' ); $category_2 = wp_insert_term( 'Alpha Category', 'product_cat' ); $adapted_product = $this->generate_attribute_mapping_adapted_product( $rules, [ $category_1['term_id'], $category_2['term_id'] ] ); - $adapted_variation = $this->generate_attribute_mapping_adapted_product_variant( $rules, [ $category_1['term_id'], $category_2['term_id'] ] ); + $adapted_variation = $this->generate_attribute_mapping_adapted_product_variant( $rules, [ $category_1['term_id'], $category_2['term_id'] ] ); $this->assertEquals( 'Alpha Category', $adapted_product->getBrand() ); $this->assertEquals( 'Alpha Category', $adapted_variation->getBrand() );