Mercurial > hg > isophonics-drupal-site
diff core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -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 @@ * @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); }