eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::testCreateContentDraftThrowsUnauthorizedException PHP Method

testCreateContentDraftThrowsUnauthorizedException() public method

Test for the createContentDraft() method.
    public function testCreateContentDraftThrowsUnauthorizedException()
    {
        $contentService = $this->repository->getContentService();
        $contentInfo = $contentService->loadContentInfo(4);
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentService->createContentDraft($contentInfo);
    }
ContentBase