diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 694880b..5082ab3 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1217,28 +1217,28 @@ class DrupalWebTestCase extends DrupalTestCase { * $account->pass_raw = $pass_raw; * @endcode * - * @param $user + * @param $account * User object representing the user to log in. * * @see drupalCreateUser() */ - protected function drupalLogin(stdClass $user) { + protected function drupalLogin(stdClass $account) { if ($this->loggedInUser) { $this->drupalLogout(); } $edit = array( - 'name' => $user->name, - 'pass' => $user->pass_raw + 'name' => $account->name, + 'pass' => $account->pass_raw ); $this->drupalPost('user', $edit, t('Log in')); // 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')); + $pass = $this->assertLink(t('Log out'), 0, t('User %name successfully logged in.', array('%name' => $account->name)), t('User login')); if ($pass) { - $this->loggedInUser = $user; + $this->loggedInUser = $account; } }