Check coding stds
This commit is contained in:
parent
c1b7c55768
commit
2fbb7bda5c
|
@ -806,7 +806,7 @@ class WC_Tests_Product_Data_Store extends WC_Unit_Test_Case {
|
||||||
$this->assertNotContains( $product4->get_id(), $results );
|
$this->assertNotContains( $product4->get_id(), $results );
|
||||||
|
|
||||||
$results = $data_store->search_products( 'green', '', true, true, 1 );
|
$results = $data_store->search_products( 'green', '', true, true, 1 );
|
||||||
$this->assertEquals( 1, sizeof( array_diff( $results, array( 0 ) ) ) );
|
$this->assertEquals( 1, count( array_diff( $results, array( 0 ) ) ) );
|
||||||
|
|
||||||
$results = $data_store->search_products( 'green', '', true, true, null, array( $product3->get_id() ) );
|
$results = $data_store->search_products( 'green', '', true, true, null, array( $product3->get_id() ) );
|
||||||
$this->assertNotContains( $product->get_id(), $results );
|
$this->assertNotContains( $product->get_id(), $results );
|
||||||
|
|
Loading…
Reference in New Issue