You are here

protected function MainContentFallbackTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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\System

Code

protected function setUp() {
  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',
  ]);
}