public function RoleDelegationPermissionsTestCase::testHighHigh in Role Delegation 7
Check that high role can't assign high role.
File
- ./
role_delegation.test, line 130 - Tests for the Role Delegation module.
Class
- RoleDelegationPermissionsTestCase
- Functional tests for permissions.
Code
public function testHighHigh() {
$this
->drupalLogin($this->user_high);
// Just check that no option is presented to the user.
$this
->assertFalse($this
->assignRoleToUser($this->rid_high, $this->user_high), t("!role1 role can't assign !role2 role.", array(
'!role1' => 'High',
'!role2' => 'high',
)), t('Role Delegation'));
}