You are here

public function BambooTwigFilesTest::testExtensionGuesser in Bamboo Twig 8

@covers Drupal\bamboo_twig_files\TwigExtension\Files::extensionGuesser

File

tests/src/Functional/BambooTwigFilesTest.php, line 24

Class

BambooTwigFilesTest
Tests Files twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testExtensionGuesser() {
  $this
    ->drupalGet('/bamboo-twig-files');
  $this
    ->assertElementPresent('.test-files div.ext-guesser');
  $this
    ->assertElementContains('.test-files div.ext-guesser', 'pdf');
}