Code Duplication    Length = 14-15 lines in 3 locations

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

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