summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/src/Functional/Form/FormTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/src/Functional/Form/FormTest.php')
-rw-r--r--core/modules/system/tests/src/Functional/Form/FormTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php
index 87c7632..d28cfa3 100644
--- a/core/modules/system/tests/src/Functional/Form/FormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormTest.php
@@ -151,7 +151,7 @@ class FormTest extends BrowserTestBase {
}
}
// Clear the expected form error messages so they don't appear as exceptions.
- drupal_get_messages();
+ \Drupal::messenger()->deleteAll();
}
/**