function EngineTwigTest::testRenderable
Tests the rendering of renderables.
File
- 
              core/modules/ system/ tests/ src/ Functional/ Theme/ EngineTwigTest.php, line 156 
Class
- EngineTwigTest
- Tests Twig-specific theme functionality.
Namespace
Drupal\Tests\system\Functional\ThemeCode
public function testRenderable() : void {
  $this->drupalGet('/twig-theme-test/renderable');
  $this->assertSession()
    ->responseContains('<div>Example markup</div>');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
