public function testPublishContentTypeDraftThrowsUnauthorizedException()
{
$contentTypeDraft = $this->createDraftContentType();
$draftId = $contentTypeDraft->id;
$contentTypeService = $this->repository->getContentTypeService();
$contentTypeDraft = $contentTypeService->loadContentTypeDraft($draftId);
// Set anonymous as current user
$this->repository->setCurrentUser($this->getStubbedUser(10));
$contentTypeService->publishContentTypeDraft($contentTypeDraft);
}