public function ThemeRenderAndAutoescapeTest::testThemeEscapeAndRenderNotPrintable in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php \Drupal\KernelTests\Core\Theme\ThemeRenderAndAutoescapeTest::testThemeEscapeAndRenderNotPrintable()
Ensures invalid content is handled correctly.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeRenderAndAutoescapeTest.php, line 86 - Contains \Drupal\KernelTests\Core\Theme\ThemeRenderAndAutoescapeTest.
Class
- ThemeRenderAndAutoescapeTest
- Tests the theme_render_and_autoescape() function.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testThemeEscapeAndRenderNotPrintable() {
$this
->expectException(\Exception::class);
theme_render_and_autoescape(new NonPrintable());
}