summaryrefslogtreecommitdiffstats
path: root/core/modules/simpletest/src/Form/SimpletestResultsForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/simpletest/src/Form/SimpletestResultsForm.php')
-rw-r--r--core/modules/simpletest/src/Form/SimpletestResultsForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/simpletest/src/Form/SimpletestResultsForm.php b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
index 55a9ca4..f24727c 100644
--- a/core/modules/simpletest/src/Form/SimpletestResultsForm.php
+++ b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
@@ -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]));
}