summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php')
-rw-r--r--core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
index 76a5462..1094522 100644
--- a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
+++ b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
@@ -110,7 +110,7 @@ class SessionTestController extends ControllerBase {
* A notification message.
*/
public function setMessage() {
- drupal_set_message($this->t('This is a dummy message.'));
+ $this->messenger()->addStatus($this->t('This is a dummy message.'));
return new Response($this->t('A message was set.'));
// Do not return anything, so the current request does not result in a themed
// page with messages. The message will be displayed in the following request