protected function MainContentFallbackTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 29
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',
]);
}