X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FRender%2FPlainTextOutputTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FRender%2FPlainTextOutputTest.php;h=c73ed8dbb9b7cdeaea5af4c9b2e7411e2fb8685f;hp=8e1101eb7bc6ce7e20a7b7737fd638fd657d9544;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php b/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php index 8e1101eb7..c73ed8dbb 100644 --- a/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php +++ b/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php @@ -3,7 +3,7 @@ namespace Drupal\Tests\Component\Render; use Drupal\Component\Render\PlainTextOutput; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Render\MarkupInterface; use PHPUnit\Framework\TestCase; @@ -28,7 +28,7 @@ class PlainTextOutputTest extends TestCase { * @dataProvider providerRenderFromHtml */ public function testRenderFromHtml($expected, $string, $args = []) { - $markup = SafeMarkup::format($string, $args); + $markup = new FormattableMarkup($string, $args); $output = PlainTextOutput::renderFromHtml($markup); $this->assertSame($expected, $output); }