summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-03-10 16:24:40 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-03-10 16:24:40 -0400
commit94739f0a477cdacd8dd2dd9c37d5e64620a7d7a9 (patch)
treef78c8963d92daca640d9361edb723d75ae98cee5 /modules/simpletest
parentba9b60db7a62061ba69a2b257f397b23c6f06f77 (diff)
downloadbrdo-94739f0a477cdacd8dd2dd9c37d5e64620a7d7a9.tar.gz
brdo-94739f0a477cdacd8dd2dd9c37d5e64620a7d7a9.tar.bz2
Issue #1898314 by droplet | xjm: Rename $user to $account in WebTestBase::drupalLogin().
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/drupal_web_test_case.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 5c65e12f4..a2cc484a2 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;
}
}