eZ\Publish\Core\Repository\Tests\Service\Integration\UserBase::testCreateUserThrowsInvalidArgumentException PHP Метод

testCreateUserThrowsInvalidArgumentException() публичный Метод

Test creating a user throwing InvalidArgumentException.
    public function testCreateUserThrowsInvalidArgumentException()
    {
        $userService = $this->repository->getUserService();
        $userCreateStruct = $userService->newUserCreateStruct('admin', '[email protected]', 'password', 'eng-GB');
        $userCreateStruct->setField('first_name', '', 'eng-GB');
        $userCreateStruct->setField('last_name', '', 'eng-GB');
        $parentGroup = $userService->loadUserGroup(12);
        $userService->createUser($userCreateStruct, array($parentGroup));
    }