function WebprofilerTestBase::loginForToolbar
Login with a user that can see the toolbar.
1 call to WebprofilerTestBase::loginForToolbar()
- ToolbarTest::testToolbarOnFrontPage in webprofiler/
tests/ src/ FunctionalJavascript/ ToolbarTest.php - Tests if the toolbar appears on front page.
File
-
webprofiler/
tests/ src/ FunctionalJavascript/ WebprofilerTestBase.php, line 50
Class
- WebprofilerTestBase
- Class WebprofilerTestBase.
Namespace
Drupal\Tests\webprofiler\FunctionalJavascriptCode
protected function loginForToolbar() {
$admin_user = $this->drupalCreateUser([
'view webprofiler toolbar',
]);
$this->drupalLogin($admin_user);
}