Commit e73cbf5e authored by catch's avatar catch
Browse files

Issue #3258995 by longwave: run-tests.sh uses the deprecated app.root service

(cherry picked from commit 6d8f206f)
parent 611b7d1c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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']);