function TourHelpPageTest::setUp
Same name in other branches
- 8.9.x core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::setUp()
- 10 core/modules/tour/tests/src/Functional/TourHelpPageTest.php \Drupal\Tests\tour\Functional\TourHelpPageTest::setUp()
- 11.x 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\FunctionalCode
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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.