protected function WebprofilerTestBase::loginForToolbar in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForToolbar()
- 8 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForToolbar()
- 8.2 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\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 30
Class
- WebprofilerTestBase
- Class WebprofilerTestBase.
Namespace
Drupal\Tests\webprofiler\FunctionalJavascriptCode
protected function loginForToolbar() {
$admin_user = $this
->drupalCreateUser([
'view webprofiler toolbar',
]);
$this
->drupalLogin($admin_user);
}