You are here

protected function UpdatePathLastRemovedTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

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

Class

UpdatePathLastRemovedTest
Tests that modules can define their last removed update function.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

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