function WebprofilerTestBase::loginForDashboard
Login with a user that can see the toolbar and the dashboard.
2 calls to WebprofilerTestBase::loginForDashboard()
- ToolbarTest::testToolbarNotAppearsOnExcludedPath in webprofiler/
tests/ src/ FunctionalJavascript/ ToolbarTest.php - Tests the toolbar not appears on excluded path.
- ToolbarTest::testToolbarReportPage in webprofiler/
tests/ src/ FunctionalJavascript/ ToolbarTest.php - Tests the toolbar report page.
File
-
webprofiler/
tests/ src/ FunctionalJavascript/ WebprofilerTestBase.php, line 62
Class
- WebprofilerTestBase
- Class WebprofilerTestBase.
Namespace
Drupal\Tests\webprofiler\FunctionalJavascriptCode
protected function loginForDashboard() {
$admin_user = $this->drupalCreateUser([
'view webprofiler toolbar',
'access webprofiler',
]);
$this->drupalLogin($admin_user);
}