You are here

public function BambooTwigLoaderTest::testField in Bamboo Twig 8

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

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

File

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

Class

BambooTwigLoaderTest
Tests Loaders twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testField() {
  $this
    ->drupalGet('/bamboo-twig-loaders');
  $this
    ->assertElementPresent('.test-loaders div.loader-field');
  $this
    ->assertElementContains('.test-loaders div.loader-field', 'Hello, world!');
}