X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fcondition_test%2Fsrc%2FFormController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fcondition_test%2Fsrc%2FFormController.php;h=19dc9505bd288aef8cfee03967641c160895cbb0;hp=da475ae0c4e93d9eaca491c85403b6e06bd6d6da;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/modules/condition_test/src/FormController.php b/web/core/modules/system/tests/modules/condition_test/src/FormController.php index da475ae0c..19dc9505b 100644 --- a/web/core/modules/system/tests/modules/condition_test/src/FormController.php +++ b/web/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.')); } }