Code Duplication    Length = 14-15 lines in 3 locations

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

@@ 2428-2442 (lines=15) @@
2425
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::listGlobalURLAliases
2426
     * @depends testLookupResourceUrlAlias
2427
     */
2428
    public function testListGlobalURLAliasesWithLanguageCode()
2429
    {
2430
        $handler = $this->getHandler();
2431
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_resource.php');
2432
2433
        $globalAliasList = $handler->listGlobalURLAliases('eng-GB');
2434
2435
        self::assertEquals(
2436
            array(
2437
                $handler->lookup('is-alive'),
2438
                $handler->lookup('nop-element/search'),
2439
            ),
2440
            $globalAliasList
2441
        );
2442
    }
2443
2444
    /**
2445
     * Test for the listGlobalURLAliases() method.
@@ 2810-2823 (lines=14) @@
2807
     *
2808
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2809
     */
2810
    public function testLocationCopiedCopiedLocationAliasIsValid()
2811
    {
2812
        $handler = $this->getHandler();
2813
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2814
2815
        $urlAlias = $handler->lookup('move-this');
2816
2817
        $handler->locationCopied(4, 400, 3);
2818
2819
        self::assertEquals(
2820
            $urlAlias,
2821
            $handler->lookup('move-this')
2822
        );
2823
    }
2824
2825
    /**
2826
     * Test for the locationCopied() method.
@@ 2830-2843 (lines=14) @@
2827
     *
2828
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2829
     */
2830
    public function testLocationCopiedCopiedSubtreeIsValid()
2831
    {
2832
        $handler = $this->getHandler();
2833
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2834
2835
        $urlAlias = $handler->lookup('move-this/sub1/sub2');
2836
2837
        $handler->locationCopied(4, 400, 3);
2838
2839
        self::assertEquals(
2840
            $urlAlias,
2841
            $handler->lookup('move-this/sub1/sub2')
2842
        );
2843
    }
2844
2845
    /**
2846
     * Test for the locationCopied() method.