You are here

public function RoleDelegationPermissionsTestCase::testHighLow in Role Delegation 7

Check that high role can assign low role.

File

./role_delegation.test, line 118
Tests for the Role Delegation module.

Class

RoleDelegationPermissionsTestCase
Functional tests for permissions.

Code

public function testHighLow() {
  $this
    ->drupalLogin($this->user_high);
  $this
    ->assertTrue($this
    ->assignRoleToUser($this->rid_low, $this->user_low), t('!role1 role can assign !role2 role.', array(
    '!role1' => 'High',
    '!role2' => 'low',
  )), t('Role Delegation'));
}