Code Duplication    Length = 9-9 lines in 2 locations

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

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