public function EngineTwigTest::testRenderable in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php \Drupal\Tests\system\Functional\Theme\EngineTwigTest::testRenderable()
- 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\ThemeCode
public function testRenderable() {
$this
->drupalGet('/twig-theme-test/renderable');
$this
->assertSession()
->responseContains('<div>Example markup</div>');
}