Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2905-2913 (lines=9) @@
2902
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2903
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2904
     */
2905
    public function testLocationCopiedHistoryNotCopied()
2906
    {
2907
        $handler = $this->getHandler();
2908
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2909
2910
        $handler->locationCopied(4, 400, 3);
2911
2912
        $handler->lookup('move-here/move-this-history');
2913
    }
2914
2915
    /**
2916
     * Test for the locationCopied() method.
@@ 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 testLocationCopiedSubtreeHistoryNotCopied()
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/sub1/sub2-history');
2929
    }
2930
2931
    /**
2932
     * Test for the locationCopied() method.