File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 28
28
* Class for product url rewrites tests
29
29
*
30
30
* @magentoDbIsolation enabled
31
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
31
32
*/
32
33
class ProductUrlRewriteTest extends AbstractUrlRewriteTest
33
34
{
@@ -343,10 +344,8 @@ public function testImportProductRewrites()
343
344
$ productUrlRewriteCollection = $ this ->getEntityRewriteCollection ($ product ->getId ());
344
345
$ rewriteExists = false ;
345
346
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 ) {
350
349
$ rewriteExists = true ;
351
350
break ;
352
351
}
You can’t perform that action at this time.
0 commit comments