You are here

protected function WebprofilerTestBase::loginForDashboard in Devel 4.x

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