private function PatternsUserTestCase::testPermissionDelete in Patterns 7
File
- tests/
user/ user.test, line 85 - SimpleTests for the User component of Patterns. TODO: permissions.
Class
- PatternsUserTestCase
- @file SimpleTests for the User component of Patterns. TODO: permissions.
Code
private function testPermissionDelete() {
parent::runFile('user_permission_delete.yaml', 'Permissions (delete)', $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);
$len = count($role_permissions);
// TODO: permissin count should be 0 here
$this
->assertIdentical($len, 0, t('The permission count to role %role should be zero at this point.', array(
'%role' => $rid,
)));
}