You are here

public function BambooTwigLoaderTest::testBlock in Bamboo Twig 8

@covers Drupal\bamboo_twig_loaders\TwigExtension\Loader::loadBlock

File

tests/src/Functional/BambooTwigLoadersTest.php, line 66

Class

BambooTwigLoaderTest
Tests Loaders twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testBlock() {
  $this
    ->drupalGet('/bamboo-twig-loaders');
  $this
    ->assertElementPresent('.test-loaders div.loader-block');
  $this
    ->assertElementContains('.test-loaders div.loader-block', '<span>Powered by <a href="https://www.drupal.org">Drupal</a></span>');
}