Commit 8ec7fdc8 authored by catch's avatar catch
Browse files

Issue #2832052 by amoebanath, drunken monkey: BrowserTestBase::drupalLogin()...

Issue #2832052 by amoebanath, drunken monkey: BrowserTestBase::drupalLogin() has typo in assert message
parent 98c5bd30
......@@ -7,9 +7,9 @@
use Behat\Mink\Mink;
use Behat\Mink\Selector\SelectorsHandler;
use Behat\Mink\Session;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Database\Database;
use Drupal\Core\Session\AccountInterface;
......@@ -725,7 +725,7 @@ protected function drupalLogin(AccountInterface $account) {
// @see BrowserTestBase::drupalUserIsLoggedIn()
$account->sessionId = $this->getSession()->getCookie($this->getSessionName());
$this->assertTrue($this->drupalUserIsLoggedIn($account), SafeMarkup::format('User %name successfully logged in.', array('name' => $account->getUsername())));
$this->assertTrue($this->drupalUserIsLoggedIn($account), new FormattableMarkup('User %name successfully logged in.', array('%name' => $account->getAccountName())));
$this->loggedInUser = $account;
$this->container->get('current_user')->setAccount($account);
......
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