public function testUpdateContentTypeGroupThrowsUnauthorizedException() { $this->createContentTypeGroup(); $contentTypeService = $this->repository->getContentTypeService(); $group = $contentTypeService->loadContentTypeGroupByIdentifier('new-group'); $groupUpdate = $contentTypeService->newContentTypeGroupUpdateStruct(); $groupUpdate->identifier = 'updated-group'; $groupUpdate->modifierId = 42; $groupUpdate->modificationDate = new \DateTime(); // @todo uncomment when support for multilingual names and descriptions is added EZP-24776 /* $groupUpdate->mainLanguageCode = 'en_US'; $groupUpdate->names = array( 'en_US' => 'A name', 'en_GB' => 'A name', ); $groupUpdate->descriptions = array( 'en_US' => 'A description', 'en_GB' => 'A description', ); */ // Set anonymous as current user $this->repository->setCurrentUser($this->getStubbedUser(10)); $contentTypeService->updateContentTypeGroup($group, $groupUpdate); }