File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,18 @@ public function testCategoriesTree()
120
120
*/
121
121
public function testCategoryProducts ()
122
122
{
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
+
123
135
$ categoryId = 4 ;
124
136
$ query = <<<QUERY
125
137
{
You can’t perform that action at this time.
0 commit comments