public function ThemeRenderAndAutoescapeTest::testThemeEscapeAndRenderNotPrintable in Drupal 9
Same name and namespace in other branches
- 8 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 77 - 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());
}