function TourHelpPageTest::setUp

Same name in other branches
  1. 9 core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::setUp()
  2. 8.9.x core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::setUp()
  3. 10 core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/tour/tests/src/Functional/TourHelpPageTest.php, line 46

Class

TourHelpPageTest
Verifies help page display of tours.

Namespace

Drupal\Tests\tour\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create users. For the Tour user, include permissions for the language
    // tours' parent pages, but not the translation tour's parent page. See
    // self:getTourList().
    $this->tourUser = $this->drupalCreateUser([
        'access help pages',
        'access tour',
        'administer languages',
    ]);
    $this->noTourUser = $this->drupalCreateUser([
        'access help pages',
    ]);
}

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