Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Integration/ContentBase.php 2 locations

@@ 1792-1802 (lines=11) @@
1789
     * @covers \eZ\Publish\Core\Repository\ContentService::createContentDraft
1790
     * @expectedException \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
1791
     */
1792
    public function testCreateContentDraftThrowsUnauthorizedException()
1793
    {
1794
        $contentService = $this->repository->getContentService();
1795
1796
        $contentInfo = $contentService->loadContentInfo(4);
1797
1798
        // Set anonymous as current user
1799
        $this->repository->setCurrentUser($this->getStubbedUser(10));
1800
1801
        $contentService->createContentDraft($contentInfo);
1802
    }
1803
1804
    /**
1805
     * Test for the loadContentDrafts() method.
@@ 1986-1996 (lines=11) @@
1983
     * @covers \eZ\Publish\Core\Repository\ContentService::loadVersions
1984
     * @expectedException \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
1985
     */
1986
    public function testLoadVersionsThrowsUnauthorizedException()
1987
    {
1988
        $contentService = $this->repository->getContentService();
1989
1990
        $contentInfo = $contentService->loadContentInfo(4);
1991
1992
        // Set anonymous as current user
1993
        $this->repository->setCurrentUser($this->getStubbedUser(10));
1994
1995
        $contentService->loadVersions($contentInfo);
1996
    }
1997
1998
    /**
1999
     * Test for the deleteVersion() method.