Issue #2550961 by borisson_, akalata, josephdpurcell, justAChris: Remove or document SafeMarkup::set in UserBlocksTest::testUserLoginBlock

8.0.x
Alex Pott 2015-08-15 01:19:56 +01:00
parent 05b5f4c69c
commit 2b702ac82d
1 changed files with 1 additions and 4 deletions

View File

@ -7,7 +7,6 @@
namespace Drupal\user\Tests;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\simpletest\WebTestBase;
/**
@ -49,9 +48,7 @@ class UserBlocksTest extends WebTestBase {
$edit['name'] = $this->randomMachineName();
$edit['pass'] = $this->randomMachineName();
$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', [
'!errors' => SafeMarkup::set('<a href="#edit-name">Username</a>')
]));
$this->assertRaw('1 error has been found: <a href="#edit-name">Username</a>');
$this->assertText(t('Sorry, unrecognized username or password.'));
// Create a user with some permission that anonymous users lack.