You are here

protected function InvalidUpdateHookTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php, line 48

Class

InvalidUpdateHookTest
Tests that a module implementing hook_update_8000() causes an error to be displayed on update.

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',
  ]);
}