function NavigationUserBlockTest::setUp
Same name in other branches
- 11.x core/modules/navigation/tests/src/Functional/NavigationUserBlockTest.php \Drupal\Tests\navigation\Functional\NavigationUserBlockTest::setUp()
Overrides PageCacheTagsTestBase::setUp
File
-
core/
modules/ navigation/ tests/ src/ Functional/ NavigationUserBlockTest.php, line 44
Class
- NavigationUserBlockTest
- Tests for \Drupal\navigation\Plugin\NavigationBlock\NavigationUserBlock.
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([
'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.