Skip to content

Commit 8caaf36

Browse files
committed
MC-18165: Quick search with two chars shows all products
1 parent 643177f commit 8caaf36

File tree

1 file changed

+3
-0
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogSearch/Model/ResourceModel/Fulltext

1 file changed

+3
-0
lines changed

dev/tests/integration/testsuite/Magento/CatalogSearch/Model/ResourceModel/Fulltext/CollectionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public function testLoadWithFilterQuickSearch($filters, $expectedCount)
5050
foreach ($filters as $field => $value) {
5151
$fulltextCollection->addFieldToFilter($field, $value);
5252
}
53+
if (isset($filters['search_term'])) {
54+
$fulltextCollection->addSearchFilter($filters['search_term']);
55+
}
5356
$fulltextCollection->loadWithFilter();
5457
$items = $fulltextCollection->getItems();
5558
$this->assertCount($expectedCount, $items);

0 commit comments

Comments
 (0)