Skip to content

Commit 74999e8

Browse files
[Magento Community Engineering] Community Contributions - 2.3-develop
- merged latest code from mainline branch
2 parents 5c48407 + 9fb7790 commit 74999e8

File tree

1 file changed

+7
-0
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogSearch/Model/ResourceModel/Advanced

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
*/
66
namespace Magento\CatalogSearch\Model\ResourceModel\Advanced;
77

8+
use Magento\CatalogSearch\Model\Indexer\Fulltext;
9+
use Magento\Framework\Indexer\IndexerRegistry;
10+
use Magento\TestFramework\Helper\Bootstrap;
11+
812
/**
913
* Test class for \Magento\CatalogSearch\Model\ResourceModel\Advanced\Collection.
1014
* @magentoDbIsolation disabled
@@ -21,6 +25,9 @@ protected function setUp()
2125
$advanced = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
2226
->create(\Magento\CatalogSearch\Model\Search\ItemCollectionProvider::class);
2327
$this->advancedCollection = $advanced->getCollection();
28+
$indexerRegistry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
29+
->create(IndexerRegistry::class);
30+
$indexerRegistry->get(Fulltext::INDEXER_ID)->reindexAll();
2431
}
2532

2633
/**

0 commit comments

Comments
 (0)