You are here

protected function ToolbarLanguageSwitcherTest::setUp in Admin Toolbar Language Switcher 8

Same name and namespace in other branches
  1. 8.1.x tests/src/Functional/ToolbarLanguageSwitcherTest.php \Drupal\Tests\toolbar_language_switcher\Functional\ToolbarLanguageSwitcherTest::setUp()
  2. 2.0.x tests/src/Functional/ToolbarLanguageSwitcherTest.php \Drupal\Tests\toolbar_language_switcher\Functional\ToolbarLanguageSwitcherTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ToolbarLanguageSwitcherTest.php, line 43

Class

ToolbarLanguageSwitcherTest
Base test class for toolbar_language_switcher tests.

Namespace

Drupal\Tests\toolbar_language_switcher\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->user = $this
    ->drupalCreateUser([
    'access toolbar',
    'use toolbar_language_switcher',
  ]);
}