summaryrefslogtreecommitdiffstats
path: root/core/modules/simpletest/src/TestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/simpletest/src/TestBase.php')
-rw-r--r--core/modules/simpletest/src/TestBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php
index 260d1a3..ffa6fa5 100644
--- a/core/modules/simpletest/src/TestBase.php
+++ b/core/modules/simpletest/src/TestBase.php
@@ -985,7 +985,7 @@ abstract class TestBase {
TestServiceProvider::$currentTest = NULL;
// Clear out the error messages and restore error handler.
- drupal_get_messages();
+ \Drupal::messenger()->deleteAll();
restore_error_handler();
}