summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/src/Kernel/Render/ClassyTest.php')
-rw-r--r--core/modules/system/tests/src/Kernel/Render/ClassyTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
index 8dbb01e..8d1cb85 100644
--- a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
+++ b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
@@ -37,8 +37,8 @@ class ClassyTest extends KernelTestBase {
* Test the classy theme.
*/
public function testClassyTheme() {
- drupal_set_message('An error occurred', 'error');
- drupal_set_message('But then something nice happened');
+ \Drupal::messenger()->addError('An error occurred');
+ \Drupal::messenger()->addStatus('But then something nice happened');
$messages = [
'#type' => 'status_messages',
];