Fix PHPCS violations automatically using phpcbf

This commit is contained in:
Rodrigo Primo 2019-02-27 18:09:11 -03:00
parent dc49afc251
commit 25f0023d38
1 changed files with 2 additions and 2 deletions

View File

@ -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' => '',