BambooTwigFilesTest.php in Bamboo Twig 8
File
tests/src/Functional/BambooTwigFilesTest.php
View source
<?php
namespace Drupal\Tests\bamboo_twig\Functional;
class BambooTwigFilesTest extends BambooTwigTestBase {
public static $modules = [
'bamboo_twig',
'bamboo_twig_files',
'bamboo_twig_test',
];
public function testExtensionGuesser() {
$this
->drupalGet('/bamboo-twig-files');
$this
->assertElementPresent('.test-files div.ext-guesser');
$this
->assertElementContains('.test-files div.ext-guesser', 'pdf');
}
public function testThemeUrl() {
$this
->drupalGet('/bamboo-twig-files');
$this
->assertElementPresent('.test-files div.theme-url');
$this
->assertElementContains('.test-files div.theme-url', 'core/themes/stable/images/color/hook.png');
}
}