function UpdateReducedThemeRegistryTest::testUpdatePageWithBrokenThemeHook
Same name in other branches
- 10 core/tests/Drupal/FunctionalTests/Update/UpdateReducedThemeRegistryTest.php \Drupal\FunctionalTests\Update\UpdateReducedThemeRegistryTest::testUpdatePageWithBrokenThemeHook()
Tests that the update page can be accessed.
File
-
core/
tests/ Drupal/ FunctionalTests/ Update/ UpdateReducedThemeRegistryTest.php, line 30
Class
- UpdateReducedThemeRegistryTest
- Tests that update.php is accessible even if there are unstable modules.
Namespace
Drupal\FunctionalTests\UpdateCode
public function testUpdatePageWithBrokenThemeHook() : void {
require_once $this->root . '/core/includes/update.inc';
$this->writeSettings([
'settings' => [
'update_free_access' => (object) [
'value' => TRUE,
'required' => TRUE,
],
],
]);
$this->drupalGet(Url::fromRoute('system.db_update'));
$this->assertSession()
->statusCodeEquals(200);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.