Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
use Behat\Mink\Mink; use Behat\Mink\Mink;
use Behat\Mink\Selector\SelectorsHandler; use Behat\Mink\Selector\SelectorsHandler;
use Behat\Mink\Session; use Behat\Mink\Session;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Serialization\Json; use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper; use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Database\Database; use Drupal\Core\Database\Database;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
...@@ -725,7 +725,7 @@ protected function drupalLogin(AccountInterface $account) { ...@@ -725,7 +725,7 @@ protected function drupalLogin(AccountInterface $account) {
// @see BrowserTestBase::drupalUserIsLoggedIn() // @see BrowserTestBase::drupalUserIsLoggedIn()
$account->sessionId = $this->getSession()->getCookie($this->getSessionName()); $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->loggedInUser = $account;
$this->container->get('current_user')->setAccount($account); $this->container->get('current_user')->setAccount($account);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment