You are here

protected function WebprofilerTestBase::loginForToolbar in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForToolbar()
  2. 8.2 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\WebprofilerTestBase::loginForToolbar()
  3. 4.x 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\FunctionalJavascript

Code

protected function loginForToolbar() {
  $admin_user = $this
    ->drupalCreateUser([
    'view webprofiler toolbar',
  ]);
  $this
    ->drupalLogin($admin_user);
}