protected function WebprofilerTestBase::loginForDashboard in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForDashboard()
- 8 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForDashboard()
- 4.x webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\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);
}