You are here

protected function SystemAuthorizeTest::setUp in Drupal 10

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php, line 26

Class

SystemAuthorizeTest
Tests the authorize.php script and related API.

Namespace

Drupal\Tests\system\Functional\System

Code

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

  // Create an administrator user.
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer software updates',
  ]));
}