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 Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \CatalogSearch \Model \ResourceModel \Advanced ;
7
7
8
+ use Magento \CatalogSearch \Model \Indexer \Fulltext ;
9
+ use Magento \Framework \Indexer \IndexerRegistry ;
10
+ use Magento \TestFramework \Helper \Bootstrap ;
11
+
8
12
/**
9
13
* Test class for \Magento\CatalogSearch\Model\ResourceModel\Advanced\Collection.
10
14
* @magentoDbIsolation disabled
@@ -21,6 +25,9 @@ protected function setUp()
21
25
$ advanced = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
22
26
->create (\Magento \CatalogSearch \Model \Search \ItemCollectionProvider::class);
23
27
$ this ->advancedCollection = $ advanced ->getCollection ();
28
+ $ indexerRegistry = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
29
+ ->create (IndexerRegistry::class);
30
+ $ indexerRegistry ->get (Fulltext::INDEXER_ID )->reindexAll ();
24
31
}
25
32
26
33
/**
You can’t perform that action at this time.
0 commit comments