Code Duplication    Length = 9-9 lines in 2 locations

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

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