Skip to content

Commit

Permalink
ENGCOM-1663: Include 'products' in category query #48
Browse files Browse the repository at this point in the history
- Fixed test in case when indexer mode is 'on schedule'
  • Loading branch information
Alex Paliarush committed May 29, 2018
1 parent b7a04f0 commit 093f1b9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ public function testCategoriesTree()
*/
public function testCategoryProducts()
{
/** @var \Magento\Catalog\Model\Indexer\Category\Product\Processor $categoryProductIndexer */
$categoryProductIndexer = $this->objectManager->get(
\Magento\Catalog\Model\Indexer\Category\Product\Processor::class
);
$categoryProductIndexer->reindexAll();

/** @var \Magento\CatalogInventory\Model\Indexer\Stock\Processor $inventoryIndexer */
$inventoryIndexer = $this->objectManager->get(
\Magento\CatalogInventory\Model\Indexer\Stock\Processor::class
);
$inventoryIndexer->reindexAll();

$categoryId = 4;
$query = <<<QUERY
{
Expand Down

0 comments on commit 093f1b9

Please sign in to comment.