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

testPublishVersionThrowsUnauthorizedException() public method

Test for the publishVersion() method.
    public function testPublishVersionThrowsUnauthorizedException()
    {
        list($draftContent, $contentType) = $this->createTestContent();
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $this->repository->getContentService()->publishVersion($draftContent->versionInfo);
    }
ContentBase