You are here

public function BambooTwigRenderTest::testViews in Bamboo Twig 8.4

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

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

File

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

Class

BambooTwigRenderTest
Tests Renders twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testViews() {
  $this
    ->drupalGet('/bamboo-twig-render');
  $this
    ->assertElementPresent('.test-render div.render-views');
  $this
    ->assertElementPresent('.test-render div.render-views .views-element-container');
}