Commit d540553f authored by Dries's avatar Dries

- Patch #487868 by David_Rothstein: remove meaningless assertions in drupalLogin().

parent 027c1e97
......@@ -926,9 +926,9 @@ protected function drupalLogin(stdClass $user) {
);
$this->drupalPost('user', $edit, t('Log in'));
$pass = $this->assertText($user->name, t('Found name: %name', array('%name' => $user->name)), t('User login'));
$pass = $pass && $this->assertNoText(t('The username %name has been blocked.', array('%name' => $user->name)), t('No blocked message at login page'), t('User login'));
$pass = $pass && $this->assertNoText(t('The name %name is a reserved username.', array('%name' => $user->name)), t('No reserved message at login page'), t('User login'));
// If a "log out" link appears on the page, it is almost certainly because
// the login was successful.
$pass = $this->assertLink(t('Log out'), 0, t('User %name successfully logged in.', array('%name' => $user->name)), t('User login'));
if ($pass) {
$this->loggedInUser = $user;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment