Code Duplication    Length = 14-15 lines in 3 locations

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

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