public function BambooTwigLoaderTest::setUp in Bamboo Twig 8.4
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::setUp()
- 8 tests/src/Functional/BambooTwigLoadersTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::setUp()
- 8.2 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::setUp()
- 8.3 tests/src/Functional/BambooTwigLoaderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigLoaderTest::setUp()
Overrides BambooTwigTestBase::setUp
File
- tests/
src/ Functional/ BambooTwigLoaderTest.php, line 49
Class
- BambooTwigLoaderTest
- Tests Loaders twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\FunctionalCode
public function setUp() {
parent::setUp();
$this
->setUpLanguages();
$this
->setUpTags();
$this
->setUpArticles();
// Create a user for tests.
$this->admin_user = $this
->drupalCreateUser();
// Create a file for tests.
$this->file = $this
->createFile();
$this->container
->get('router.builder')
->rebuild();
}