Mercurial > hg > isophonics-drupal-site
diff core/modules/simpletest/src/WebTestBase.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/simpletest/src/WebTestBase.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/simpletest/src/WebTestBase.php Thu May 09 15:33:08 2019 +0100 @@ -285,7 +285,7 @@ } $edit = [ - 'name' => $account->getUsername(), + 'name' => $account->getAccountName(), 'pass' => $account->pass_raw, ]; $this->drupalPostForm('user/login', $edit, t('Log in')); @@ -294,7 +294,7 @@ if (isset($this->sessionId)) { $account->session_id = $this->sessionId; } - $pass = $this->assert($this->drupalUserIsLoggedIn($account), format_string('User %name successfully logged in.', ['%name' => $account->getUsername()]), 'User login'); + $pass = $this->assert($this->drupalUserIsLoggedIn($account), format_string('User %name successfully logged in.', ['%name' => $account->getAccountName()]), 'User login'); if ($pass) { $this->loggedInUser = $account; $this->container->get('current_user')->setAccount($account);