function NavigationSafeBlockDefinitionTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/navigation/tests/src/Functional/NavigationSafeBlockDefinitionTest.php, line 36

Class

NavigationSafeBlockDefinitionTest
Tests the definition of navigation safe blocks.

Namespace

Drupal\Tests\navigation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create an admin user, log in and enable test navigation blocks.
    $this->adminUser = $this->drupalCreateUser([
        'configure navigation layout',
        'access navigation',
    ]);
    $this->drupalLogin($this->adminUser);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.