Commit 2b702ac8 authored by alexpott's avatar alexpott
Browse files

Issue #2550961 by borisson_, akalata, josephdpurcell, justAChris: Remove or...

Issue #2550961 by borisson_, akalata, josephdpurcell, justAChris: Remove or document SafeMarkup::set in UserBlocksTest::testUserLoginBlock
parent 05b5f4c6
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
namespace Drupal\user\Tests; namespace Drupal\user\Tests;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\simpletest\WebTestBase; use Drupal\simpletest\WebTestBase;
/** /**
...@@ -49,9 +48,7 @@ function testUserLoginBlock() { ...@@ -49,9 +48,7 @@ function testUserLoginBlock() {
$edit['name'] = $this->randomMachineName(); $edit['name'] = $this->randomMachineName();
$edit['pass'] = $this->randomMachineName(); $edit['pass'] = $this->randomMachineName();
$this->drupalPostForm('node', $edit, t('Log in')); $this->drupalPostForm('node', $edit, t('Log in'));
$this->assertRaw(\Drupal::translation()->formatPlural(1, '1 error has been found: !errors', '@count errors have been found: !errors', [ $this->assertRaw('1 error has been found: <a href="#edit-name">Username</a>');
'!errors' => SafeMarkup::set('<a href="#edit-name">Username</a>')
]));
$this->assertText(t('Sorry, unrecognized username or password.')); $this->assertText(t('Sorry, unrecognized username or password.'));
// Create a user with some permission that anonymous users lack. // Create a user with some permission that anonymous users lack.
......
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