private function PatternsUserTestCase::testPermissionModify in Patterns 7
Same name and namespace in other branches
- 7.2 tests/user/user.test \PatternsUserTestCase::testPermissionModify()
File
- tests/
user/ user.test, line 70 - SimpleTests for the User component of Patterns. TODO: permissions.
Class
- PatternsUserTestCase
- @file SimpleTests for the User component of Patterns. TODO: permissions.
Code
private function testPermissionModify() {
$perms = array(
'delete own page content',
);
parent::runFile('user_permission_modify.yaml', 'Permissions (modify)', $this->user_tests_dir);
$rid = 5;
$role_permissions = user_role_permissions(array(
$rid => 'a',
));
$role_permissions = $role_permissions[$rid];
$role_permissions = array_keys($role_permissions);
$equals = $this
->arrayEquals($role_permissions, $perms);
// TODO: the arrays should be equal
$this
->assertIdentical($equals, false, t('The role should contain the modified permissions here.'));
}