Code Duplication    Length = 9-9 lines in 2 locations

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

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