From 6d8f206f291788c7c5ea10b7ff8cc5ffef387643 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 17 Jan 2022 20:43:31 +0000 Subject: [PATCH] Issue #3258995 by longwave: run-tests.sh uses the deprecated app.root service --- core/scripts/run-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index d9728a02e995..cf7c75045aaa 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -67,7 +67,7 @@ echo "\nAvailable test groups & classes\n"; echo "-------------------------------\n\n"; $test_discovery = new TestDiscovery( - \Drupal::service('app.root'), + \Drupal::root(), \Drupal::service('class_loader') ); try { @@ -100,7 +100,7 @@ if ($args['list-files'] || $args['list-files-json']) { // List all files which could be run as tests. $test_discovery = new TestDiscovery( - \Drupal::service('app.root'), + \Drupal::root(), \Drupal::service('class_loader') ); // TestDiscovery::findAllClassFiles() gives us a classmap similar to a @@ -1024,7 +1024,7 @@ function simpletest_script_get_test_list() { global $args; $test_discovery = new TestDiscovery( - \Drupal::service('app.root'), + \Drupal::root(), \Drupal::service('class_loader') ); $types_processed = empty($args['types']); -- GitLab