Skip to content

Commit 751d573

Browse files
committed
ACP2E-1760: Fix Magento\CatalogImportExport\Model\Import\ProductTest\ProductStockTest::testProductStockStatusShouldBeUpdatedOnSchedule
1 parent a047c76 commit 751d573

File tree

1 file changed

+2
-1
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest/ProductStockTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)