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