public function testDeleteContentTypeGroupThrowsUnauthorizedException() { $this->createContentTypeGroup(); /* BEGIN: Use Case */ $contentTypeService = $this->repository->getContentTypeService(); $group = $contentTypeService->loadContentTypeGroupByIdentifier('new-group'); // Set anonymous as current user $this->repository->setCurrentUser($this->getStubbedUser(10)); $contentTypeService->deleteContentTypeGroup($group); }