protected function AdminToolbarAlterTest::setUp in Admin Toolbar 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/AdminToolbarAlterTest.php \Drupal\Tests\admin_toolbar\Functional\AdminToolbarAlterTest::setUp()
- 3.x tests/src/Functional/AdminToolbarAlterTest.php \Drupal\Tests\admin_toolbar\Functional\AdminToolbarAlterTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ AdminToolbarAlterTest.php, line 35
Class
- AdminToolbarAlterTest
- Test the existence of Admin Toolbar module.
Namespace
Drupal\Tests\admin_toolbar\FunctionalCode
protected function setUp() {
parent::setUp();
// Create and log in an administrative user.
$this->adminUser = $this
->drupalCreateUser([
'access toolbar',
'access administration pages',
]);
$this
->drupalLogin($this->adminUser);
}