public function testCreateContentTypeDraftThrowsUnauthorizedException() { $publishedType = $this->createPublishedContentType(); $contentTypeService = $this->repository->getContentTypeService(); // Set anonymous as current user $this->repository->setCurrentUser($this->getStubbedUser(10)); $contentTypeService->createContentTypeDraft($publishedType); }