File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 31
31
$ product ->getSku (),
32
32
[2 ]
33
33
);
34
-
35
-
36
- /**
37
- * We need to remember that automatic reindexation is not working properly in integration tests
38
- * Reindexation is sitting on top of afterCommit callbacks:
39
- * \Magento\Catalog\Model\Product::priceReindexCallback
40
- *
41
- * However, callbacks are applied only when transaction_level = 0 (when transaction is commited), however
42
- * integration tests are not committing transactions, so we need to reindex data manually in order to reuse it in tests
43
- */
44
- /** @var \Magento\Indexer\Model\Indexer $indexer */
45
- $ indexer = $ objectManager ->create (\Magento \Indexer \Model \Indexer::class);
46
- $ indexer ->load ('catalog_product_price ' );
47
- $ indexer ->reindexRow ($ product ->getId ());
You can’t perform that action at this time.
0 commit comments