Add limit param tests

This commit is contained in:
Manos Psychogyiopoulos 2019-04-10 12:47:06 +03:00
parent 861d42f368
commit e6f25b04d8
1 changed files with 3 additions and 0 deletions

View File

@ -804,5 +804,8 @@ class WC_Tests_Product_Data_Store extends WC_Unit_Test_Case {
$this->assertContains( $product2->get_id(), $results );
$this->assertNotContains( $product3->get_id(), $results );
$this->assertNotContains( $product4->get_id(), $results );
$results = $data_store->search_products( 'green', '', true, true, 1 );
$this->assertEquals( 1, sizeof( array_diff( $results, array( 0 ) ) ) );
}
}