Skip to content

Commit a0eba20

Browse files
ACPT-489
fixing static test failures
1 parent bc81377 commit a0eba20

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* Class for product url rewrites tests
2929
*
3030
* @magentoDbIsolation enabled
31+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3132
*/
3233
class ProductUrlRewriteTest extends AbstractUrlRewriteTest
3334
{
@@ -343,10 +344,8 @@ public function testImportProductRewrites()
343344
$productUrlRewriteCollection = $this->getEntityRewriteCollection($product->getId());
344345
$rewriteExists = false;
345346
foreach ($productUrlRewriteCollection as $item) {
346-
if (
347-
$item->getTargetPath() === $datum['target_path'] . $this->suffix &&
348-
$item->getRequestPath() === $datum['request_path'] . $this->suffix
349-
) {
347+
if ($item->getTargetPath() === $datum['target_path'] . $this->suffix &&
348+
$item->getRequestPath() === $datum['request_path'] . $this->suffix) {
350349
$rewriteExists = true;
351350
break;
352351
}

0 commit comments

Comments
 (0)