You are here

protected function SessionAuthenticationTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php \Drupal\Tests\system\Functional\Session\SessionAuthenticationTest::setUp()
  2. 9 core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php \Drupal\Tests\system\Functional\Session\SessionAuthenticationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php, line 38

Class

SessionAuthenticationTest
Tests if sessions are correctly handled when a user authenticates.

Namespace

Drupal\Tests\system\Functional\Session

Code

protected function setUp() : void {
  parent::setUp();

  // Create a test administrator user.
  $this->user = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
}