diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-29 13:50:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-29 13:50:14 +0000 |
commit | 212a5e08adf2de7ae43241086a1bdf59e00d3f3e (patch) | |
tree | 2eb50d872b81e1b831f974276741973458028fbd /modules/user/user.test | |
parent | 6ad8b01a0f23573913698e5bf2465006491afa26 (diff) | |
download | brdo-212a5e08adf2de7ae43241086a1bdf59e00d3f3e.tar.gz brdo-212a5e08adf2de7ae43241086a1bdf59e00d3f3e.tar.bz2 |
- Patch #660302 by reglogge, samhassell, agentrickard, jhodgdon: registration e-mails should not contain passwords.
Diffstat (limited to 'modules/user/user.test')
-rw-r--r-- | modules/user/user.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index cc1c075b3..72a4c9a00 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -25,7 +25,7 @@ class UserRegistrationTestCase extends DrupalWebTestCase { $edit['name'] = $name = $this->randomName(); $edit['mail'] = $mail = $edit['name'] . '@example.com'; $this->drupalPost('user/register', $edit, t('Create new account')); - $this->assertText(t('Your password and further instructions have been sent to your e-mail address.'), t('User registered successfully.')); + $this->assertText(t('A welcome message with further instructions has been sent to your e-mail address.'), t('User registered successfully.')); $accounts = user_load_multiple(array(), array('name' => $name, 'mail' => $mail)); $new_user = reset($accounts); $this->assertTrue($new_user->status, t('New account is active after registration.')); @@ -1350,7 +1350,7 @@ class UserCreateTestCase extends DrupalWebTestCase { $this->drupalPost('admin/people/create', $edit, t('Create new account')); if ($notify) { - $this->assertText(t('Password and further instructions have been e-mailed to the new user @name.', array('@name' => $edit['name'])), 'User created'); + $this->assertText(t('A welcome message with further instructions has been e-mailed to the new user @name.', array('@name' => $edit['name'])), 'User created'); $this->assertEqual(count($this->drupalGetMails()), 1, 'Notification e-mail sent'); } else { |