function TourJavascriptTest::setUp

Same name in other branches
  1. 9 core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php \Drupal\Tests\tour\FunctionalJavascript\TourJavascriptTest::setUp()
  2. 10 core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php \Drupal\Tests\tour\FunctionalJavascript\TourJavascriptTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php, line 34

Class

TourJavascriptTest
General Tour tests that require JavaScript.

Namespace

Drupal\Tests\tour\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $admin_user = $this->drupalCreateUser([
        'access toolbar',
        'access tour',
    ]);
    $this->drupalLogin($admin_user);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.