File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Product/Flat/Action Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Catalog \Model \Indexer \Product \Flat \Processor ;
12
12
use Magento \Catalog \Model \Indexer \Product \Flat \State ;
13
13
use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory as ProductCollectionFactory ;
14
+ use Magento \CatalogSearch \Model \Indexer \Fulltext ;
15
+ use Magento \Framework \Indexer \IndexerRegistry ;
14
16
use Magento \Store \Model \StoreManagerInterface ;
15
17
use Magento \TestFramework \Helper \Bootstrap ;
16
18
use Magento \TestFramework \ObjectManager ;
@@ -35,6 +37,22 @@ class FullTest extends \Magento\TestFramework\Indexer\TestCase
35
37
*/
36
38
private $ objectManager ;
37
39
40
+ /**
41
+ * @inheritdoc
42
+ */
43
+ public static function setUpBeforeClass ()
44
+ {
45
+ /*
46
+ * Due to insufficient search engine isolation for Elasticsearch, this class must explicitly perform
47
+ * a fulltext reindex prior to running its tests.
48
+ *
49
+ * This should be removed upon completing MC-19455.
50
+ */
51
+ $ indexRegistry = Bootstrap::getObjectManager ()->get (IndexerRegistry::class);
52
+ $ fulltextIndexer = $ indexRegistry ->get (Fulltext::INDEXER_ID );
53
+ $ fulltextIndexer ->reindexAll ();
54
+ }
55
+
38
56
/**
39
57
* @inheritdoc
40
58
*/
You can’t perform that action at this time.
0 commit comments