You are here

protected function UpdateScriptTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php, line 66

Class

UpdateScriptTest
Tests the update script access and functionality.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

protected function setUp() : void {
  parent::setUp();
  $this->updateUrl = Url::fromRoute('system.db_update');
  $this->statusReportUrl = Url::fromRoute('system.status');
  $this->updateUser = $this
    ->drupalCreateUser([
    'administer software updates',
    'access site in maintenance mode',
    'administer themes',
  ]);
}