You are here

public function EngineTwigTest::testRenderable in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php \Drupal\Tests\system\Functional\Theme\EngineTwigTest::testRenderable()
  2. 10 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 151

Class

EngineTwigTest
Tests Twig-specific theme functionality.

Namespace

Drupal\Tests\system\Functional\Theme

Code

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