Skip to content

Commit deadf87

Browse files
Fixed the product search test
1 parent 5f2769b commit deadf87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Foundation/Tests/ProductSearchTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,8 @@ public function it_can_limit_the_number_of_results()
509509
factory(Product::class, 4)->create();
510510
factory(MasterProduct::class, 3)->create();
511511

512-
$finder = new ProductSearch();
513-
$this->assertCount(7, $finder->getResults());
514-
$this->assertCount(5, $finder->getResults(5));
512+
$this->assertCount(7, (new ProductSearch())->getResults());
513+
$this->assertCount(5, (new ProductSearch())->getResults(5));
515514
}
516515

517516
/** @test */

0 commit comments

Comments
 (0)