Code Duplication    Length = 14-15 lines in 3 locations

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

@@ 2498-2512 (lines=15) @@
2495
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::listGlobalURLAliases
2496
     * @depends testLookupResourceUrlAlias
2497
     */
2498
    public function testListGlobalURLAliasesWithLanguageCode()
2499
    {
2500
        $handler = $this->getHandler();
2501
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_resource.php');
2502
2503
        $globalAliasList = $handler->listGlobalURLAliases('eng-GB');
2504
2505
        self::assertEquals(
2506
            array(
2507
                $handler->lookup('is-alive'),
2508
                $handler->lookup('nop-element/search'),
2509
            ),
2510
            $globalAliasList
2511
        );
2512
    }
2513
2514
    /**
2515
     * Test for the listGlobalURLAliases() method.
@@ 2880-2893 (lines=14) @@
2877
     *
2878
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2879
     */
2880
    public function testLocationCopiedCopiedLocationAliasIsValid()
2881
    {
2882
        $handler = $this->getHandler();
2883
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2884
2885
        $urlAlias = $handler->lookup('move-this');
2886
2887
        $handler->locationCopied(4, 400, 3);
2888
2889
        self::assertEquals(
2890
            $urlAlias,
2891
            $handler->lookup('move-this')
2892
        );
2893
    }
2894
2895
    /**
2896
     * Test for the locationCopied() method.
@@ 2900-2913 (lines=14) @@
2897
     *
2898
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2899
     */
2900
    public function testLocationCopiedCopiedSubtreeIsValid()
2901
    {
2902
        $handler = $this->getHandler();
2903
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2904
2905
        $urlAlias = $handler->lookup('move-this/sub1/sub2');
2906
2907
        $handler->locationCopied(4, 400, 3);
2908
2909
        self::assertEquals(
2910
            $urlAlias,
2911
            $handler->lookup('move-this/sub1/sub2')
2912
        );
2913
    }
2914
2915
    /**
2916
     * Test for the locationCopied() method.