Code Duplication    Length = 14-15 lines in 3 locations

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

@@ 2410-2424 (lines=15) @@
2407
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::listGlobalURLAliases
2408
     * @depends testLookupResourceUrlAlias
2409
     */
2410
    public function testListGlobalURLAliasesWithLanguageCode()
2411
    {
2412
        $handler = $this->getHandler();
2413
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_resource.php');
2414
2415
        $globalAliasList = $handler->listGlobalURLAliases('eng-GB');
2416
2417
        self::assertEquals(
2418
            array(
2419
                $handler->lookup('is-alive'),
2420
                $handler->lookup('nop-element/search'),
2421
            ),
2422
            $globalAliasList
2423
        );
2424
    }
2425
2426
    /**
2427
     * Test for the listGlobalURLAliases() method.
@@ 2792-2805 (lines=14) @@
2789
     *
2790
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2791
     */
2792
    public function testLocationCopiedCopiedLocationAliasIsValid()
2793
    {
2794
        $handler = $this->getHandler();
2795
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2796
2797
        $urlAlias = $handler->lookup('move-this');
2798
2799
        $handler->locationCopied(4, 400, 3);
2800
2801
        self::assertEquals(
2802
            $urlAlias,
2803
            $handler->lookup('move-this')
2804
        );
2805
    }
2806
2807
    /**
2808
     * Test for the locationCopied() method.
@@ 2812-2825 (lines=14) @@
2809
     *
2810
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2811
     */
2812
    public function testLocationCopiedCopiedSubtreeIsValid()
2813
    {
2814
        $handler = $this->getHandler();
2815
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2816
2817
        $urlAlias = $handler->lookup('move-this/sub1/sub2');
2818
2819
        $handler->locationCopied(4, 400, 3);
2820
2821
        self::assertEquals(
2822
            $urlAlias,
2823
            $handler->lookup('move-this/sub1/sub2')
2824
        );
2825
    }
2826
2827
    /**
2828
     * Test for the locationCopied() method.