Code Duplication    Length = 22-22 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/UrlAliasHandlerTest.php 2 locations

@@ 1587-1608 (lines=22) @@
1584
        );
1585
1586
        $virtualUrlAliasReloaded = $handler->lookup('nop-element/search');
1587
        foreach ($virtualUrlAliasReloaded as $propertyName => $propertyValue) {
1588
            if ($propertyName === 'pathData') {
1589
                self::assertEquals(
1590
                    [
1591
                        [
1592
                            'always-available' => false,
1593
                            'translations' => ['eng-GB' => 'nop-element'],
1594
                        ],
1595
                        [
1596
                            'always-available' => false,
1597
                            'translations' => ['eng-GB' => 'search'],
1598
                        ],
1599
                    ],
1600
                    $virtualUrlAliasReloaded->pathData
1601
                );
1602
            } else {
1603
                self::assertEquals(
1604
                    $virtualUrlAlias->$propertyName,
1605
                    $virtualUrlAliasReloaded->$propertyName
1606
                );
1607
            }
1608
        }
1609
    }
1610
1611
    /**
@@ 1636-1657 (lines=22) @@
1633
            $this->countRows()
1634
        );
1635
1636
        foreach ($virtualUrlAliasChanged as $propertyName => $propertyValue) {
1637
            if ($propertyName === 'pathData') {
1638
                self::assertEquals(
1639
                    [
1640
                        [
1641
                            'always-available' => false,
1642
                            'translations' => ['eng-GB' => 'nop-element-renamed'],
1643
                        ],
1644
                        [
1645
                            'always-available' => false,
1646
                            'translations' => ['eng-GB' => 'search'],
1647
                        ],
1648
                    ],
1649
                    $virtualUrlAliasChanged->pathData
1650
                );
1651
            } else {
1652
                self::assertEquals(
1653
                    $virtualUrlAlias->$propertyName,
1654
                    $virtualUrlAliasChanged->$propertyName
1655
                );
1656
            }
1657
        }
1658
    }
1659
1660
    /**