function NavigationBlockUiTest::setUp
Same name in other branches
- 11.x core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php \Drupal\Tests\navigation\FunctionalJavascript\NavigationBlockUiTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ navigation/ tests/ src/ FunctionalJavascript/ NavigationBlockUiTest.php, line 57
Class
- NavigationBlockUiTest
- Tests that the navigation block UI exists and stores data correctly.
Namespace
Drupal\Tests\navigation\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalPlaceBlock('page_title_block', [
'id' => 'title',
]);
// Create an administrative user.
$this->adminUser = $this->drupalCreateUser([
'configure navigation layout',
'access administration pages',
'access navigation',
'access shortcuts',
'access contextual links',
'administer shortcuts',
'administer site configuration',
'access administration pages',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.