summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/condition_test/src/FormController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/condition_test/src/FormController.php')
-rw-r--r--core/modules/system/tests/modules/condition_test/src/FormController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/system/tests/modules/condition_test/src/FormController.php b/core/modules/system/tests/modules/condition_test/src/FormController.php
index da475ae..19dc950 100644
--- a/core/modules/system/tests/modules/condition_test/src/FormController.php
+++ b/core/modules/system/tests/modules/condition_test/src/FormController.php
@@ -60,13 +60,13 @@ class FormController implements FormInterface {
$this->condition->submitConfigurationForm($form, $form_state);
$config = $this->condition->getConfig();
foreach ($config['bundles'] as $bundle) {
- drupal_set_message('Bundle: ' . $bundle);
+ \Drupal::messenger()->addStatus('Bundle: ' . $bundle);
}
$article = Node::load(1);
$this->condition->setContextValue('node', $article);
if ($this->condition->execute()) {
- drupal_set_message(t('Executed successfully.'));
+ \Drupal::messenger()->addStatus(t('Executed successfully.'));
}
}