Code Duplication    Length = 9-9 lines in 2 locations

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

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