File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,15 @@ public function testProductStockStatusShouldBeUpdated()
171171 * Test that product stock status is updated after import on schedule
172172 *
173173 * @magentoDataFixture mediaImportImageFixture
174- * @magentoDataFixture Magento/Catalog/_files/product_simple.php
175174 * @magentoDataFixture Magento/CatalogImportExport/_files/cataloginventory_stock_item_update_by_schedule.php
175+ * @magentoDataFixture Magento/Catalog/_files/product_simple.php
176176 * @magentoDbIsolation disabled
177177 */
178178 public function testProductStockStatusShouldBeUpdatedOnSchedule ()
179179 {
180180 /** * @var $indexProcessor \Magento\Indexer\Model\Processor */
181181 $ indexProcessor = $ this ->objectManager ->create (\Magento \Indexer \Model \Processor::class);
182+ $ indexProcessor ->updateMview ();
182183 $ status = $ this ->stockRegistry ->getStockStatusBySku ('simple ' );
183184 $ this ->assertEquals (Stock::STOCK_IN_STOCK , $ status ->getStockStatus ());
184185 $ this ->importDataForMediaTest ('disable_product.csv ' );
You can’t perform that action at this time.
0 commit comments