public function BambooTwigRenderTest::testImageStyle in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testImageStyle()
- 8.2 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testImageStyle()
- 8.4 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::testImageStyle()
@covers Drupal\bamboo_twig_loader\TwigExtension\Render::renderImageStyle
File
- tests/
src/ Functional/ BambooTwigRenderTest.php, line 143
Class
- BambooTwigRenderTest
- Tests Renders twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\FunctionalCode
public function testImageStyle() {
$this
->drupalGet('/bamboo-twig-render');
$this
->assertElementPresent('.test-render div.render-image-style-uri');
$this
->assertElementContains('.test-render div.render-image-style-uri', 'files/styles/thumbnail/public/antistatique.jpg');
$this
->assertElementPresent('.test-render div.render-image-style-uri-preprocess');
$this
->assertElementContains('.test-render div.render-image-style-uri-preprocess', 'files/styles/thumbnail/public/antistatique.jpg');
}