function TourTestBasic::setUp
Same name in other branches
- 9 core/modules/tour/tests/src/Functional/TourTestBasic.php \Drupal\Tests\tour\Functional\TourTestBasic::setUp()
- 8.9.x core/modules/tour/tests/src/Functional/TourTestBasic.php \Drupal\Tests\tour\Functional\TourTestBasic::setUp()
- 11.x core/modules/tour/tests/src/Functional/TourTestBasic.php \Drupal\Tests\tour\Functional\TourTestBasic::setUp()
Overrides BrowserTestBase::setUp
1 call to TourTestBasic::setUp()
- TourTest::setUp in core/
modules/ tour/ tests/ src/ Functional/ TourTest.php
1 method overrides TourTestBasic::setUp()
- TourTest::setUp in core/
modules/ tour/ tests/ src/ Functional/ TourTest.php
File
-
core/
modules/ tour/ tests/ src/ Functional/ TourTestBasic.php, line 47
Class
- TourTestBasic
- Simple tour tips test base.
Namespace
Drupal\Tests\tour\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Make sure we are using distinct default and administrative themes for
// the duration of these tests.
$this->container
->get('theme_installer')
->install([
'olivero',
'claro',
]);
$this->config('system.theme')
->set('default', 'olivero')
->set('admin', 'claro')
->save();
$this->permissions[] = 'view the administration theme';
// Create an admin user to view tour tips.
$this->adminUser = $this->drupalCreateUser($this->permissions);
$this->drupalLogin($this->adminUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.