Commit 7462abb3 authored by andypost's avatar andypost

Replace deprecated SafeMarkup usage

parent b4964765
......@@ -2,7 +2,7 @@
namespace Drupal\Tests\contact_storage\Functional;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Render\PlainTextOutput;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Test\AssertMailTrait;
......@@ -98,7 +98,7 @@ class ContactStoragePersonalTest extends BrowserTestBase {
'@sender_email' => $this->webUser->getEmail(),
'@recipient_name' => $this->contactUser->getDisplayName(),
$this->assertRaw(SafeMarkup::format('@sender_name (@sender_email) sent @recipient_name an email.', $placeholders));
$this->assertRaw(new FormattableMarkup('@sender_name (@sender_email) sent @recipient_name an email.', $placeholders));
// Ensure an unescaped version of the email does not exist anywhere.
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