private function PatternsUserTestCase::testRoleModify in Patterns 7
Same name and namespace in other branches
- 7.2 tests/user/user.test \PatternsUserTestCase::testRoleModify()
1 call to PatternsUserTestCase::testRoleModify()
- PatternsUserTestCase::testCreateModifyDelete in tests/
user/ user.test
File
- tests/
user/ user.test, line 128 - SimpleTests for the User component of Patterns. TODO: permissions.
Class
- PatternsUserTestCase
- @file SimpleTests for the User component of Patterns. TODO: permissions.
Code
private function testRoleModify() {
// Run the pattern.
parent::runFile('user_role_modify.yaml', 'Role (modify)', $this->user_tests_dir);
// The role should exist with the modified values.
$role_count = db_select('role', 'r')
->fields('r', array(
'name',
))
->condition('name', 'test_role_mod')
->condition('weight', '10')
->countQuery()
->execute()
->fetchField();
$this
->assertIdentical($role_count, '1', t('The role should exist with the modified values.'));
//$this->testPermissionModify();
//$this->testPermissionDelete();
}