eZ\Publish\Core\Repository\Tests\Service\Integration\RoleBase::testCreateRoleThrowsInvalidArgumentException PHP Method

testCreateRoleThrowsInvalidArgumentException() public method

Test creating a role throwing InvalidArgumentException.
    public function testCreateRoleThrowsInvalidArgumentException()
    {
        $roleService = $this->repository->getRoleService();
        $roleCreateStruct = $roleService->newRoleCreateStruct('Anonymous');
        // @todo uncomment when support for multilingual names and descriptions is added EZP-24776
        // $roleCreateStruct->mainLanguageCode = 'eng-GB';
        // $roleCreateStruct->names = array( 'eng-GB' => 'Anonymous' );
        // $roleCreateStruct->descriptions = array( 'eng-GB' => 'Anonymous role' );
        $roleService->createRole($roleCreateStruct);
    }