Fix code sniffer errors in class-wc-tests-product.php

This commit is contained in:
Nestor Soriano 2020-06-29 15:20:49 +02:00
parent 9aa3c54bd9
commit 391474c5ef
1 changed files with 3 additions and 3 deletions

View File

@ -44,11 +44,11 @@ class WC_Tests_Product extends WC_Unit_Test_Case {
};
$product = $this->getMockBuilder( WC_Product::class )
->setMethods( array( 'maybe_defer_product_sync' ) )
->getMock();
->setMethods( array( 'maybe_defer_product_sync' ) )
->getMock();
$product->method( 'maybe_defer_product_sync' )
->will( $this->returnCallback( $defer_product_callback ) );
->will( $this->returnCallback( $defer_product_callback ) );
$product->$operation();