This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
dev/tests/integration/testsuite/Magento/CatalogSearch/Model/ResourceModel/Fulltext Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function testSearchResultsAreTheSameForSameRequests()
41
41
42
42
$ objManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
43
43
44
- foreach (range (1 , $ howManySearchRequests ) as $ _ ) {
44
+ foreach (range (1 , $ howManySearchRequests ) as $ i ) {
45
45
/** @var \Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection $fulltextCollection */
46
46
$ fulltextCollection = $ objManager ->create (
47
47
\Magento \CatalogSearch \Model \ResourceModel \Fulltext \Collection::class,
@@ -52,10 +52,18 @@ public function testSearchResultsAreTheSameForSameRequests()
52
52
$ fulltextCollection ->setOrder ('relevance ' );
53
53
$ fulltextCollection ->load ();
54
54
$ items = $ fulltextCollection ->getItems ();
55
- $ this ->assertGreaterThan (0 , count ($ items ), "Search result must not be empty " );
55
+ $ this ->assertGreaterThan (
56
+ 0 ,
57
+ count ($ items ),
58
+ sprintf ("Search #%s result must not be empty " , $ i )
59
+ );
56
60
57
61
if ($ previousResult ) {
58
- $ this ->assertEquals ($ previousResult , array_keys ($ items ), "Search result must be the same for the same requests " );
62
+ $ this ->assertEquals (
63
+ $ previousResult ,
64
+ array_keys ($ items ),
65
+ "Search result must be the same for the same requests "
66
+ );
59
67
}
60
68
61
69
$ previousResult = array_keys ($ items );
You can’t perform that action at this time.
0 commit comments