You are here

protected function WebprofilerTestBase::loginForDashboard in Devel 8.3

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

Class

WebprofilerTestBase
Class WebprofilerTestBase.

Namespace

Drupal\Tests\webprofiler\FunctionalJavascript

Code

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