function UserNavigationBlockTest::setUp
Same name in other branches
- 11.x core/modules/navigation/tests/src/Functional/UserNavigationBlockTest.php \Drupal\Tests\navigation\Functional\UserNavigationBlockTest::setUp()
Overrides PageCacheTagsTestBase::setUp
File
-
core/
modules/ navigation/ tests/ src/ Functional/ UserNavigationBlockTest.php, line 46
Class
- UserNavigationBlockTest
- Tests for \Drupal\navigation\Plugin\NavigationBlock\UserNavigationBlock.
Namespace
Drupal\Tests\navigation\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an admin user, log in and enable test navigation blocks.
$this->adminUser = $this->drupalCreateUser([
'administer navigation_block',
'access administration pages',
'access navigation',
]);
// Create additional users to test caching modes.
$this->normalUser = $this->drupalCreateUser([
'access navigation',
]);
// Note that we don't need to setup a user navigation block b/c it's
// installed by default.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.