Skip to content

Commit 2fb7183

Browse files
Force reload of products during test to ensure they are not coming from cache (due to simple3 being deleted)
1 parent 3a54946 commit 2fb7183

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,7 @@ public function testExistingProductWithUrlKeys()
15731573
*/
15741574
public function testImportWithoutUrlKeys()
15751575
{
1576+
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
15761577
$productRepository = $this->objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class);
15771578

15781579
/**
@@ -1611,7 +1612,7 @@ public function testImportWithoutUrlKeys()
16111612
$this->_model->importData();
16121613

16131614
foreach ($products as $productSku => $productUrlKey) {
1614-
$this->assertEquals($productUrlKey, $productRepository->get($productSku)->getUrlKey());
1615+
$this->assertEquals($productUrlKey, $productRepository->get($productSku, false, null, true)->getUrlKey());
16151616
}
16161617
}
16171618

0 commit comments

Comments
 (0)