Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Render / PlainTextOutputTest.php
index 244736a61ccc7d388f9fb19afc75f6da91a36702..c73ed8dbb9b7cdeaea5af4c9b2e7411e2fb8685f 100644 (file)
@@ -3,15 +3,15 @@
 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 Drupal\Tests\UnitTestCase;
+use PHPUnit\Framework\TestCase;
 
 /**
  * @coversDefaultClass \Drupal\Component\Render\PlainTextOutput
  * @group Utility
  */
-class PlainTextOutputTest extends UnitTestCase {
+class PlainTextOutputTest extends TestCase {
 
   /**
    * Tests ::renderFromHtml().
@@ -28,7 +28,7 @@ class PlainTextOutputTest extends UnitTestCase {
    * @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);
   }