Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2921-2929 (lines=9) @@
2918
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2919
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2920
     */
2921
    public function testLocationCopiedHistoryNotCopied()
2922
    {
2923
        $handler = $this->getHandler();
2924
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2925
2926
        $handler->locationCopied(4, 400, 3);
2927
2928
        $handler->lookup('move-here/move-this-history');
2929
    }
2930
2931
    /**
2932
     * Test for the locationCopied() method.
@@ 2937-2945 (lines=9) @@
2934
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2935
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2936
     */
2937
    public function testLocationCopiedSubtreeHistoryNotCopied()
2938
    {
2939
        $handler = $this->getHandler();
2940
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2941
2942
        $handler->locationCopied(4, 400, 3);
2943
2944
        $handler->lookup('move-here/move-this/sub1/sub2-history');
2945
    }
2946
2947
    /**
2948
     * Test for the locationCopied() method.