diff options
Diffstat (limited to 'core/tests/Drupal/Tests/UpdatePathTestTrait.php')
-rw-r--r-- | core/tests/Drupal/Tests/UpdatePathTestTrait.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/tests/Drupal/Tests/UpdatePathTestTrait.php b/core/tests/Drupal/Tests/UpdatePathTestTrait.php index c79916fca289..deaa20997fb8 100644 --- a/core/tests/Drupal/Tests/UpdatePathTestTrait.php +++ b/core/tests/Drupal/Tests/UpdatePathTestTrait.php @@ -36,7 +36,7 @@ trait UpdatePathTestTrait { * @param string|null $update_url * The update URL. */ - protected function runUpdates($update_url = NULL) { + protected function runUpdates($update_url = NULL): void { if (!$update_url) { $update_url = Url::fromRoute('system.db_update'); } @@ -167,7 +167,7 @@ trait UpdatePathTestTrait { /** * Tests the selection page. */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { // No-op. Tests wishing to do test the selection page or the general // update.php environment before running update.php can override this method // and implement their required tests. @@ -176,7 +176,7 @@ trait UpdatePathTestTrait { /** * Installs the update_script_test module and makes an update available. */ - protected function ensureUpdatesToRun() { + protected function ensureUpdatesToRun(): void { \Drupal::service('module_installer')->install(['update_script_test']); // Reset the schema so there is an update to run. \Drupal::service('update.update_hook_registry')->setInstalledVersion('update_script_test', 8000); |