Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 2908-2918 (lines=11) @@
2905
     *
2906
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2907
     */
2908
    public function testLocationCopiedHistoryNotCopied()
2909
    {
2910
        $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class);
2911
2912
        $handler = $this->getHandler();
2913
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2914
2915
        $handler->locationCopied(4, 400, 3);
2916
2917
        $handler->lookup('move-here/move-this-history');
2918
    }
2919
2920
    /**
2921
     * Test for the locationCopied() method.
@@ 2925-2935 (lines=11) @@
2922
     *
2923
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied
2924
     */
2925
    public function testLocationCopiedSubtreeHistoryNotCopied()
2926
    {
2927
        $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class);
2928
2929
        $handler = $this->getHandler();
2930
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php');
2931
2932
        $handler->locationCopied(4, 400, 3);
2933
2934
        $handler->lookup('move-here/move-this/sub1/sub2-history');
2935
    }
2936
2937
    /**
2938
     * Test for the locationCopied() method.