Mercurial > hg > cmmr2012-drupal-site
diff core/modules/simpletest/src/WebTestBase.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line diff
--- a/core/modules/simpletest/src/WebTestBase.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/simpletest/src/WebTestBase.php Thu May 09 15:34:47 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);