public function TwigRenderThisTest::testEntities in Twig Render This 8
Tests rendering entities.
File
- tests/
src/ Functional/ TwigRenderThisTest.php, line 66
Class
- TwigRenderThisTest
- Twig Render This tests.
Namespace
Drupal\Tests\twig_render_this\FunctionalCode
public function testEntities() {
$this
->drupalGet('news');
$this
->assertText('Using Twig Render This to render entities');
$this
->assertText('Start Trek TNG');
$this
->assertText('Star Trek: The Next Generation (TNG) is an American science fiction television series created by Gene Roddenberry.');
$this
->assertText('Start Trek DS9');
$this
->assertNoText('Star Trek: Deep Space Nine (DS9) is an American science fiction television series created by Rick Berman and Michael Piller.');
$this
->assertText('Start Trek Voyager');
$this
->assertNoText('Star Trek: Voyager is an American science fiction television series created by Rick Berman, Michael Piller, and Jeri Taylor.');
}