You are here

public function EngineTwigTest::testRenderable in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php \Drupal\Tests\system\Functional\Theme\EngineTwigTest::testRenderable()
  2. 9 core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php \Drupal\Tests\system\Functional\Theme\EngineTwigTest::testRenderable()

Tests the rendering of renderables.

File

core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php, line 153

Class

EngineTwigTest
Tests Twig-specific theme functionality.

Namespace

Drupal\Tests\system\Functional\Theme

Code

public function testRenderable() {
  $this
    ->drupalGet('/twig-theme-test/renderable');
  $this
    ->assertSession()
    ->responseContains('<div>Example markup</div>');
}