You are here

protected function UpdatesWith7xTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/UpdateSystem/UpdatesWith7xTest.php, line 42

Class

UpdatesWith7xTest
Tests that the minimum schema version is correct even if only 7.x update hooks are retained .

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

protected function setUp() : void {
  parent::setUp();
  require_once $this->root . '/core/includes/update.inc';
  $this->updateUrl = $GLOBALS['base_url'] . '/update.php';
  $this->updateUser = $this
    ->drupalCreateUser([
    'administer software updates',
  ]);
}