Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2853-2861 (lines=9) @@
2850
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2851
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2852
     */
2853
    public function testLocationCopiedHistoryNotCopied()
2854
    {
2855
        $handler = $this->getHandler();
2856
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2857
2858
        $handler->locationCopied(4, 400, 3);
2859
2860
        $handler->lookup('move-here/move-this-history');
2861
    }
2862
2863
    /**
2864
     * Test for the locationCopied() method.
@@ 2869-2877 (lines=9) @@
2866
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2867
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2868
     */
2869
    public function testLocationCopiedSubtreeHistoryNotCopied()
2870
    {
2871
        $handler = $this->getHandler();
2872
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2873
2874
        $handler->locationCopied(4, 400, 3);
2875
2876
        $handler->lookup('move-here/move-this/sub1/sub2-history');
2877
    }
2878
2879
    /**
2880
     * Test for the locationCopied() method.