public function BambooTwigLoaderTest::testField in Bamboo Twig 8
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::testField()
- 8.2 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::testField()
- 8.3 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::testField()
- 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\FunctionalCode
public function testField() {
$this
->drupalGet('/bamboo-twig-loaders');
$this
->assertElementPresent('.test-loaders div.loader-field');
$this
->assertElementContains('.test-loaders div.loader-field', 'Hello, world!');
}