projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php
b/web/core/tests/Drupal/Tests/Component/Render/PlainTextOutputTest.php
index 8e1101eb7bc6ce7e20a7b7737fd638fd657d9544..c73ed8dbb9b7cdeaea5af4c9b2e7411e2fb8685f 100644
(file)
--- 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;
namespace Drupal\Tests\Component\Render;
use Drupal\Component\Render\PlainTextOutput;
-use Drupal\Component\
Utility\Saf
eMarkup;
+use Drupal\Component\
Render\Formattabl
eMarkup;
use Drupal\Component\Render\MarkupInterface;
use PHPUnit\Framework\TestCase;
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 = []) {
* @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);
}
$output = PlainTextOutput::renderFromHtml($markup);
$this->assertSame($expected, $output);
}