You are here

protected function TourHelpPageTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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() {
  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',
  ]);
}