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()
171
171
* Test that product stock status is updated after import on schedule
172
172
*
173
173
* @magentoDataFixture mediaImportImageFixture
174
- * @magentoDataFixture Magento/Catalog/_files/product_simple.php
175
174
* @magentoDataFixture Magento/CatalogImportExport/_files/cataloginventory_stock_item_update_by_schedule.php
175
+ * @magentoDataFixture Magento/Catalog/_files/product_simple.php
176
176
* @magentoDbIsolation disabled
177
177
*/
178
178
public function testProductStockStatusShouldBeUpdatedOnSchedule ()
179
179
{
180
180
/** * @var $indexProcessor \Magento\Indexer\Model\Processor */
181
181
$ indexProcessor = $ this ->objectManager ->create (\Magento \Indexer \Model \Processor::class);
182
+ $ indexProcessor ->updateMview ();
182
183
$ status = $ this ->stockRegistry ->getStockStatusBySku ('simple ' );
183
184
$ this ->assertEquals (Stock::STOCK_IN_STOCK , $ status ->getStockStatus ());
184
185
$ this ->importDataForMediaTest ('disable_product.csv ' );
You can’t perform that action at this time.
0 commit comments