X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsimpletest%2Fsrc%2FForm%2FSimpletestResultsForm.php;h=a2241571eb4e00775024bed10cddaa6cfda6db14;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=090ae0276ea60b2d69ad225f168610a7507ae370;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/simpletest/src/Form/SimpletestResultsForm.php b/web/core/modules/simpletest/src/Form/SimpletestResultsForm.php index 090ae0276..a2241571e 100644 --- a/web/core/modules/simpletest/src/Form/SimpletestResultsForm.php +++ b/web/core/modules/simpletest/src/Form/SimpletestResultsForm.php @@ -17,6 +17,8 @@ use Symfony\Component\HttpFoundation\RedirectResponse; * Note that the UI strings are not translated because this form is also used * from run-tests.sh. * + * @internal + * * @see simpletest_script_open_browser() * @see run-tests.sh */ @@ -110,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])); } @@ -235,7 +237,7 @@ class SimpletestResultsForm extends FormBase { * * @param array $form * The form to attach the results to. - * @param array $test_results + * @param array $results * The simpletest results. * * @return array @@ -288,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) {