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