diff --git a/core/modules/user/src/Tests/UserBlocksTest.php b/core/modules/user/src/Tests/UserBlocksTest.php index 830b87a..d9b9fb7 100644 --- a/core/modules/user/src/Tests/UserBlocksTest.php +++ b/core/modules/user/src/Tests/UserBlocksTest.php @@ -8,6 +8,7 @@ namespace Drupal\user\Tests; use Drupal\Component\Utility\SafeMarkup; +use Drupal\Core\Render\SafeString; use Drupal\simpletest\WebTestBase; /** @@ -50,7 +51,7 @@ function testUserLoginBlock() { $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('Username') + '!errors' => SafeString::create('Username') ])); $this->assertText(t('Sorry, unrecognized username or password.'));