public function TwigRenderThisTest::testFieldWithoutFilter in Twig Render This 8
Tests rendering a field without renderThis filter.
File
- tests/
src/ Functional/ TwigRenderThisTest.php, line 89
Class
- TwigRenderThisTest
- Twig Render This tests.
Namespace
Drupal\Tests\twig_render_this\FunctionalCode
public function testFieldWithoutFilter() {
$this
->drupalGet('node/2');
$this
->assertText('Object of type Drupal\\Core\\Field\\FieldItemList cannot be printed');
}