function EquivalentUpdateTest::setUp
Same name in other branches
- 11.x core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php \Drupal\Tests\system\Functional\UpdateSystem\EquivalentUpdateTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ EquivalentUpdateTest.php, line 45
Class
- EquivalentUpdateTest
- Tests that update hooks are properly run.
Namespace
Drupal\Tests\system\Functional\UpdateSystemCode
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.