public function BambooTwigRenderTest::setUp in Bamboo Twig 8.5
Same name and namespace in other branches
- 8.2 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::setUp()
- 8.3 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::setUp()
- 8.4 tests/src/Functional/BambooTwigRenderTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigRenderTest::setUp()
Overrides BambooTwigTestBase::setUp
File
- tests/
src/ Functional/ BambooTwigRenderTest.php, line 39
Class
- BambooTwigRenderTest
- Tests Renders twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\FunctionalCode
public function setUp() : void {
parent::setUp();
$this
->setUpLanguages();
$this
->setUpTags();
$this
->setUpArticles();
// Create a user for tests.
$this->admin_user = $this
->drupalCreateUser([
'access content',
'administer blocks',
'administer content types',
'bypass node access',
'administer site configuration',
'view the administration theme',
'administer menu',
'access administration pages',
]);
// Create a file for tests.
$this->file = $this
->createFile();
$this->container
->get('router.builder')
->rebuild();
}