summaryrefslogtreecommitdiffstats
path: root/core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php')
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
index 476551c..a0bfb1c 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
@@ -24,7 +24,7 @@ class AreaMessagesTest extends ViewsKernelTestBase {
* Tests the messages area handler.
*/
public function testMessageText() {
- drupal_set_message('My drupal set message.');
+ \Drupal::messenger()->addStatus('My drupal set message.');
$view = Views::getView('test_area_messages');