Skip to content

Commit

Permalink
Github #99: Sync "develop-storefront" with master branches
Browse files Browse the repository at this point in the history
  • Loading branch information
le0n4ik committed Aug 3, 2020
1 parent a4850f2 commit 0e4a941
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,3 @@
$product->getSku(),
[2]
);


/**
* We need to remember that automatic reindexation is not working properly in integration tests
* Reindexation is sitting on top of afterCommit callbacks:
* \Magento\Catalog\Model\Product::priceReindexCallback
*
* However, callbacks are applied only when transaction_level = 0 (when transaction is commited), however
* integration tests are not committing transactions, so we need to reindex data manually in order to reuse it in tests
*/
/** @var \Magento\Indexer\Model\Indexer $indexer */
$indexer = $objectManager->create(\Magento\Indexer\Model\Indexer::class);
$indexer->load('catalog_product_price');
$indexer->reindexRow($product->getId());

0 comments on commit 0e4a941

Please sign in to comment.