Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 093f1b9

Browse files
author
Alex Paliarush
committed
ENGCOM-1663: Include 'products' in category query #48
- Fixed test in case when indexer mode is 'on schedule'
1 parent b7a04f0 commit 093f1b9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ public function testCategoriesTree()
120120
*/
121121
public function testCategoryProducts()
122122
{
123+
/** @var \Magento\Catalog\Model\Indexer\Category\Product\Processor $categoryProductIndexer */
124+
$categoryProductIndexer = $this->objectManager->get(
125+
\Magento\Catalog\Model\Indexer\Category\Product\Processor::class
126+
);
127+
$categoryProductIndexer->reindexAll();
128+
129+
/** @var \Magento\CatalogInventory\Model\Indexer\Stock\Processor $inventoryIndexer */
130+
$inventoryIndexer = $this->objectManager->get(
131+
\Magento\CatalogInventory\Model\Indexer\Stock\Processor::class
132+
);
133+
$inventoryIndexer->reindexAll();
134+
123135
$categoryId = 4;
124136
$query = <<<QUERY
125137
{

0 commit comments

Comments
 (0)