From deadf87f38177af6e58fa7a75347a98c8086328d Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Sat, 30 Mar 2024 10:13:02 +0200 Subject: [PATCH] Fixed the product search test --- src/Foundation/Tests/ProductSearchTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Foundation/Tests/ProductSearchTest.php b/src/Foundation/Tests/ProductSearchTest.php index 6087be9c..0ef77f7d 100644 --- a/src/Foundation/Tests/ProductSearchTest.php +++ b/src/Foundation/Tests/ProductSearchTest.php @@ -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 */