public function BambooTwigRenderTest::testBlock in Bamboo Twig 8.2
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testBlock()
- 8.3 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testBlock()
- 8.4 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testBlock()
@covers Drupal\bamboo_twig_loader\TwigExtension\Render::renderBlock
File
- tests/
src/ Functional/ BambooTwigRenderTest.php, line 72
Class
- BambooTwigRenderTest
- Tests Renders twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\FunctionalCode
public function testBlock() {
$this
->drupalGet('/bamboo-twig-render');
$this
->assertElementPresent('.test-render div.render-block');
$this
->assertElementContains('.test-render div.render-block', '<span>Powered by <a href="https://www.drupal.org">Drupal</a></span>');
}