Skip to content

Commit

Permalink
Fixed the product search test
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Mar 30, 2024
1 parent 5f2769b commit deadf87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Foundation/Tests/ProductSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,8 @@ public function it_can_limit_the_number_of_results()
factory(Product::class, 4)->create();
factory(MasterProduct::class, 3)->create();

$finder = new ProductSearch();
$this->assertCount(7, $finder->getResults());
$this->assertCount(5, $finder->getResults(5));
$this->assertCount(7, (new ProductSearch())->getResults());
$this->assertCount(5, (new ProductSearch())->getResults(5));
}

/** @test */
Expand Down

0 comments on commit deadf87

Please sign in to comment.