protected function ToolbarMenuTranslationTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php \Drupal\Tests\toolbar\Functional\ToolbarMenuTranslationTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarMenuTranslationTest.php, line 38
Class
- ToolbarMenuTranslationTest
- Tests that the toolbar icon class remains for translated menu items.
Namespace
Drupal\Tests\toolbar\FunctionalCode
protected function setUp() {
parent::setUp();
// Create an administrative user and log it in.
$this->adminUser = $this
->drupalCreateUser([
'access toolbar',
'translate interface',
'administer languages',
'access administration pages',
]);
$this
->drupalLogin($this->adminUser);
}