You are here

public function ThemeRenderAndAutoescapeTest::testThemeEscapeAndRenderNotPrintable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php \Drupal\KernelTests\Core\Theme\ThemeRenderAndAutoescapeTest::testThemeEscapeAndRenderNotPrintable()

Ensures invalid content is handled correctly.

@expectedException \Exception

File

core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php, line 87
Contains \Drupal\KernelTests\Core\Theme\ThemeRenderAndAutoescapeTest.

Class

ThemeRenderAndAutoescapeTest
Tests the theme_render_and_autoescape() function.

Namespace

Drupal\KernelTests\Core\Theme

Code

public function testThemeEscapeAndRenderNotPrintable() {
  theme_render_and_autoescape(new NonPrintable());
}