Code Duplication    Length = 14-15 lines in 3 locations

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

@@ 2470-2484 (lines=15) @@
2467
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::listGlobalURLAliases
2468
     * @depends testLookupResourceUrlAlias
2469
     */
2470
    public function testListGlobalURLAliasesWithLanguageCode()
2471
    {
2472
        $handler = $this->getHandler();
2473
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_resource.php');
2474
2475
        $globalAliasList = $handler->listGlobalURLAliases('eng-GB');
2476
2477
        self::assertEquals(
2478
            [
2479
                $handler->lookup('is-alive'),
2480
                $handler->lookup('nop-element/search'),
2481
            ],
2482
            $globalAliasList
2483
        );
2484
    }
2485
2486
    /**
2487
     * Test for the listGlobalURLAliases() method.
@@ 2868-2881 (lines=14) @@
2865
     *
2866
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2867
     */
2868
    public function testLocationCopiedCopiedLocationAliasIsValid()
2869
    {
2870
        $handler = $this->getHandler();
2871
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2872
2873
        $urlAlias = $handler->lookup('move-this');
2874
2875
        $handler->locationCopied(4, 400, 3);
2876
2877
        self::assertEquals(
2878
            $urlAlias,
2879
            $handler->lookup('move-this')
2880
        );
2881
    }
2882
2883
    /**
2884
     * Test for the locationCopied() method.
@@ 2888-2901 (lines=14) @@
2885
     *
2886
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2887
     */
2888
    public function testLocationCopiedCopiedSubtreeIsValid()
2889
    {
2890
        $handler = $this->getHandler();
2891
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2892
2893
        $urlAlias = $handler->lookup('move-this/sub1/sub2');
2894
2895
        $handler->locationCopied(4, 400, 3);
2896
2897
        self::assertEquals(
2898
            $urlAlias,
2899
            $handler->lookup('move-this/sub1/sub2')
2900
        );
2901
    }
2902
2903
    /**
2904
     * Test for the locationCopied() method.