From 212a5e08adf2de7ae43241086a1bdf59e00d3f3e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Jan 2010 13:50:14 +0000 Subject: - Patch #660302 by reglogge, samhassell, agentrickard, jhodgdon: registration e-mails should not contain passwords. --- modules/user/user.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/user.test') 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 { -- cgit v1.2.3