eZ\Publish\Core\Repository\Tests\Service\Integration\UserBase::testUpdateUserThrowsContentValidationException PHP Method

testUpdateUserThrowsContentValidationException() public method

Test updating a user throwing ContentValidationException.
    public function testUpdateUserThrowsContentValidationException()
    {
        $userService = $this->repository->getUserService();
        $contentService = $this->repository->getContentService();
        $user = $userService->loadUser(14);
        $userUpdateStruct = $userService->newUserUpdateStruct();
        $userUpdateStruct->contentUpdateStruct = $contentService->newContentUpdateStruct();
        $userUpdateStruct->contentUpdateStruct->setField('name', '', 'eng-US');
        $userService->updateUser($user, $userUpdateStruct);
    }