function TourJavascriptTest::setUp

Same name in other branches
  1. 10 core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php \Drupal\Tests\tour\FunctionalJavascript\TourJavascriptTest::setUp()
  2. 11.x 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 31

Class

TourJavascriptTest
General Tour tests that require JavaScript.

Namespace

Drupal\Tests\tour\FunctionalJavascript

Code

public 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.