Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestLimitValidationErrorsForm.php
index 883602217373310fcdf5ce48a0f28354c348d5b8..8f6531f5c5b3b9d14256caf964d37371da22f423 100644 (file)
@@ -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.');
     }
   }