Skip to content

Commit b6bfb66

Browse files
#32657: Make sure all 301 url redirects get generated when importing more then one product at the same time while using the 'save_rewrites_history' flag.
1 parent e792abc commit b6bfb66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model/ProductUrlRewriteTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function testImportProductRewrites()
325325
)->setSource(
326326
$source
327327
)->validateData();
328-
$this->assertTrue($errors->getErrorsCount() == 0);
328+
$this->assertTrue($errors->getErrorsCount() === 0);
329329
$productImport->importData();
330330

331331
foreach ($data as $datum) {
@@ -343,6 +343,7 @@ public function testImportProductRewrites()
343343
$item->getRequestPath() === $datum['request_path'] . $this->suffix
344344
) {
345345
$rewriteExists = true;
346+
break;
346347
}
347348

348349
}

0 commit comments

Comments
 (0)