Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2629-2637 (lines=9) @@
2626
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2627
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2628
     */
2629
    public function testLocationCopiedHistoryNotCopied()
2630
    {
2631
        $handler = $this->getHandler();
2632
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2633
2634
        $handler->locationCopied(4, 400, 3);
2635
2636
        $handler->lookup('move-here/move-this-history');
2637
    }
2638
2639
    /**
2640
     * Test for the locationCopied() method.
@@ 2645-2653 (lines=9) @@
2642
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2643
     * @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException
2644
     */
2645
    public function testLocationCopiedSubtreeHistoryNotCopied()
2646
    {
2647
        $handler = $this->getHandler();
2648
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2649
2650
        $handler->locationCopied(4, 400, 3);
2651
2652
        $handler->lookup('move-here/move-this/sub1/sub2-history');
2653
    }
2654
2655
    /**
2656
     * Test for the locationCopied() method.