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);
}