We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2769b commit deadf87Copy full SHA for deadf87
src/Foundation/Tests/ProductSearchTest.php
@@ -509,9 +509,8 @@ public function it_can_limit_the_number_of_results()
509
factory(Product::class, 4)->create();
510
factory(MasterProduct::class, 3)->create();
511
512
- $finder = new ProductSearch();
513
- $this->assertCount(7, $finder->getResults());
514
- $this->assertCount(5, $finder->getResults(5));
+ $this->assertCount(7, (new ProductSearch())->getResults());
+ $this->assertCount(5, (new ProductSearch())->getResults(5));
515
}
516
517
/** @test */
0 commit comments