private function PatternsUserTestCase::testUserDelete in Patterns 7
Same name and namespace in other branches
- 7.2 tests/user/user.test \PatternsUserTestCase::testUserDelete()
File
- tests/
user/ user.test, line 181 - SimpleTests for the User component of Patterns. TODO: permissions.
Class
- PatternsUserTestCase
- @file SimpleTests for the User component of Patterns. TODO: permissions.
Code
private function testUserDelete() {
// Run the pattern.
parent::runFile('user_delete.yaml', 'Users (delete)', $this->user_tests_dir);
// Expected messages.
$this
->assertUniqueText(t(''));
// TODO
// The user should not exist at this point.
$user_count = db_select('users', 'u')
->fields('u', array(
'uid',
))
->condition('uid', 'test_uid')
->countQuery()
->execute()
->fetchField();
$this
->assertIdentical($user_count, '0', t('The user should not exist at this point.'));
}