Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Render / PlainTextOutputTest.php
index 8e1101eb7bc6ce7e20a7b7737fd638fd657d9544..c73ed8dbb9b7cdeaea5af4c9b2e7411e2fb8685f 100644 (file)
@@ -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);
   }