Skip to content

Commit 0e4a941

Browse files
committed
Github #99: Sync "develop-storefront" with master branches
1 parent a4850f2 commit 0e4a941

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/product_simple_xss.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,3 @@
3131
$product->getSku(),
3232
[2]
3333
);
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());

0 commit comments

Comments
 (0)