Code Duplication    Length = 9-9 lines in 2 locations

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

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