From 25f0023d38e8bcd09e1526030c69e90892c52ebb Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 27 Feb 2019 18:09:11 -0300 Subject: [PATCH] Fix PHPCS violations automatically using phpcbf --- tests/unit-tests/product/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit-tests/product/functions.php b/tests/unit-tests/product/functions.php index 150dd67b8d2..75b33c43f2c 100644 --- a/tests/unit-tests/product/functions.php +++ b/tests/unit-tests/product/functions.php @@ -790,7 +790,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { */ public function test_wc_update_product_stock_should_return_stock_quantity_if_no_stock_quantity_given() { $stock_quantity = 5; - $product = WC_Helper_Product::create_simple_product(); + $product = WC_Helper_Product::create_simple_product(); $product->set_stock_quantity( $stock_quantity ); $product->set_manage_stock( true ); $product->save(); @@ -1022,7 +1022,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { // Test blank src image attr, this is used in lazy loading. $this->assertEquals( $image_attr, wc_get_attachment_image_attributes( $image_attr ) ); - $image_attr = array( + $image_attr = array( 'src' => 'https://wc.local/wp-content/woocommerce_uploads/my-image.jpg', 'class' => 'attachment-woocommerce_thumbnail size-woocommerce_thumbnail', 'alt' => '',