Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2836-2844 (lines=9) @@
2833
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2834
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2835
     */
2836
    public function testLocationCopiedHistoryNotCopied()
2837
    {
2838
        $handler = $this->getHandler();
2839
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2840
2841
        $handler->locationCopied(4, 400, 3);
2842
2843
        $handler->lookup('move-here/move-this-history');
2844
    }
2845
2846
    /**
2847
     * Test for the locationCopied() method.
@@ 2852-2860 (lines=9) @@
2849
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2850
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2851
     */
2852
    public function testLocationCopiedSubtreeHistoryNotCopied()
2853
    {
2854
        $handler = $this->getHandler();
2855
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2856
2857
        $handler->locationCopied(4, 400, 3);
2858
2859
        $handler->lookup('move-here/move-this/sub1/sub2-history');
2860
    }
2861
2862
    /**
2863
     * Test for the locationCopied() method.