function MainContentFallbackTest::setUp
Same name in other branches
- 9 core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php \Drupal\Tests\system\Functional\System\MainContentFallbackTest::setUp()
- 8.9.x core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php \Drupal\Tests\system\Functional\System\MainContentFallbackTest::setUp()
- 10 core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php \Drupal\Tests\system\Functional\System\MainContentFallbackTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ system/ tests/ src/ Functional/ System/ MainContentFallbackTest.php, line 32
Class
- MainContentFallbackTest
- Test SimplePageVariant main content rendering fallback page display variant.
Namespace
Drupal\Tests\system\Functional\SystemCode
protected function setUp() : void {
parent::setUp();
// Create and log in admin user.
$this->adminUser = $this->drupalCreateUser([
'access administration pages',
'administer site configuration',
'administer modules',
]);
$this->drupalLogin($this->adminUser);
// Create a web user.
$this->webUser = $this->drupalCreateUser([
'access user profiles',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.