You are here

public function BambooTwigRenderTest::testRegion in Bamboo Twig 8.3

Same name and namespace in other branches
  1. 8.5 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testRegion()
  2. 8.2 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testRegion()
  3. 8.4 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testRegion()

@covers Drupal\bamboo_twig_loader\TwigExtension\Render::renderRegion

File

tests/src/Functional/BambooTwigRenderTest.php, line 89

Class

BambooTwigRenderTest
Tests Renders twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testRegion() {
  $this
    ->drupalGet('/bamboo-twig-render');
  $this
    ->assertElementPresent('.test-render div.render-region');
  $this
    ->assertElementPresent('.test-render div.render-region #block-stark-branding');
}