summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php
index 8836022..8f6531f 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestLimitValidationErrorsForm.php
@@ -104,7 +104,7 @@ class FormTestLimitValidationErrorsForm extends FormBase {
// The title has not been validated, thus its value - in case of the test case
// an empty string - may not be set.
if (!$form_state->hasValue('title') && $form_state->hasValue('test')) {
- drupal_set_message('Only validated values appear in the form values.');
+ $this->messenger()->addStatus('Only validated values appear in the form values.');
}
}