You are here

protected function TourHelpPageTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 43

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 administration pages',
    'access tour',
    'administer languages',
  ]);
  $this->noTourUser = $this
    ->drupalCreateUser([
    'access administration pages',
  ]);
}