summaryrefslogtreecommitdiffstats
path: root/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/src/Tests/Form/ElementsTableSelectTest.php')
-rw-r--r--core/modules/system/src/Tests/Form/ElementsTableSelectTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
index d335518..9cbda92 100644
--- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
@@ -248,7 +248,7 @@ class ElementsTableSelectTest extends WebTestBase {
$errors = $form_state->getErrors();
// Clear errors and messages.
- drupal_get_messages();
+ \Drupal::messenger()->deleteAll();
$form_state->clearErrors();
// Return the processed form together with form_state and errors