Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / simpletest / src / Form / SimpletestResultsForm.php
index 55a9ca4e87badef1556b2beafaa857aa5055376e..a2241571eb4e00775024bed10cddaa6cfda6db14 100644 (file)
@@ -112,7 +112,7 @@ class SimpletestResultsForm extends FormBase {
     // performed.
     $results = [];
     if (is_numeric($test_id) && !$results = $this->getResults($test_id)) {
-      drupal_set_message($this->t('No test results to display.'), 'error');
+      $this->messenger()->addError($this->t('No test results to display.'));
       return new RedirectResponse($this->url('simpletest.test_form', [], ['absolute' => TRUE]));
     }
 
@@ -290,7 +290,7 @@ class SimpletestResultsForm extends FormBase {
       'Filename',
       'Line',
       'Function',
-      ['colspan' => 2, 'data' => 'Status']
+      ['colspan' => 2, 'data' => 'Status'],
     ];
     $form['result']['results'] = [];
     foreach ($test_results as $group => $assertions) {