-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-1663: Include 'products' in category query #48
- Loading branch information
Alex Paliarush
committed
May 30, 2018
1 parent
3b3dcd4
commit a7138bc
Showing
3 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
dev/tests/integration/testsuite/Magento/Catalog/_files/categories_indexed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
include __DIR__ . '/categories.php'; | ||
|
||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | ||
|
||
/** @var \Magento\Catalog\Model\Indexer\Category\Product\Processor $categoryProductIndexer */ | ||
$categoryProductIndexer = $objectManager->get( | ||
\Magento\Catalog\Model\Indexer\Category\Product\Processor::class | ||
); | ||
$categoryProductIndexer->reindexAll(); | ||
|
||
/** @var \Magento\CatalogInventory\Model\Indexer\Stock\Processor $inventoryIndexer */ | ||
$inventoryIndexer = $objectManager->get( | ||
\Magento\CatalogInventory\Model\Indexer\Stock\Processor::class | ||
); | ||
$inventoryIndexer->reindexAll(); |
21 changes: 21 additions & 0 deletions
21
dev/tests/integration/testsuite/Magento/Catalog/_files/categories_indexed_rollback.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
include __DIR__ . '/categories_rollback.php'; | ||
|
||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | ||
|
||
/** @var \Magento\Catalog\Model\Indexer\Category\Product\Processor $categoryProductIndexer */ | ||
$categoryProductIndexer = $objectManager->get( | ||
\Magento\Catalog\Model\Indexer\Category\Product\Processor::class | ||
); | ||
$categoryProductIndexer->reindexAll(); | ||
|
||
/** @var \Magento\CatalogInventory\Model\Indexer\Stock\Processor $inventoryIndexer */ | ||
$inventoryIndexer = $objectManager->get( | ||
\Magento\CatalogInventory\Model\Indexer\Stock\Processor::class | ||
); | ||
$inventoryIndexer->reindexAll(); |