You are here

public function TwigRenderThisTest::testFieldWithFilter in Twig Render This 8

Tests rendering a field with renderThis filter.

File

tests/src/Functional/TwigRenderThisTest.php, line 80

Class

TwigRenderThisTest
Twig Render This tests.

Namespace

Drupal\Tests\twig_render_this\Functional

Code

public function testFieldWithFilter() {
  $this
    ->drupalGet('node/1');
  $this
    ->assertText('Hello world!');
  $this
    ->assertText('This is Twig Render This');
}