You are here

public function BambooTwigSecurityTest::setUp in Bamboo Twig 8

Same name and namespace in other branches
  1. 8.5 tests/src/Functional/BambooTwigSecurityTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigSecurityTest::setUp()
  2. 8.2 tests/src/Functional/BambooTwigSecurityTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigSecurityTest::setUp()
  3. 8.3 tests/src/Functional/BambooTwigSecurityTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigSecurityTest::setUp()
  4. 8.4 tests/src/Functional/BambooTwigSecurityTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigSecurityTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/BambooTwigSecurityTest.php, line 25

Class

BambooTwigSecurityTest
Tests Security twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function setUp() {
  parent::setUp();

  // Create a user for tests.
  $this->admin_user = $this
    ->drupalCreateUser([
    'access content',
    'administer content types',
    'bypass node access',
    'administer site configuration',
    'view the administration theme',
    'administer menu',
    'access administration pages',
  ]);
}