function ToolbarActiveTrailTest::setUp
Same name in other branches
- 10 core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php \Drupal\Tests\toolbar\FunctionalJavascript\ToolbarActiveTrailTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ toolbar/ tests/ src/ FunctionalJavascript/ ToolbarActiveTrailTest.php, line 29
Class
- ToolbarActiveTrailTest
- Tests that the active trail is maintained in the toolbar.
Namespace
Drupal\Tests\toolbar\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
$this->drupalLogin($this->drupalCreateUser([
'access administration pages',
'administer content types',
'administer node fields',
'access toolbar',
]));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.