You are here

protected function UpdateSchemaTest::setUp in Drupal 10

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php, line 44

Class

UpdateSchemaTest
Tests that update hooks are properly run.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

protected function setUp() : void {
  parent::setUp();
  require_once $this->root . '/core/includes/update.inc';
  $this->user = $this
    ->drupalCreateUser([
    'administer software updates',
    'access site in maintenance mode',
  ]);
  $this->updateUrl = Url::fromRoute('system.db_update');
}