summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
diff options
context:
space:
mode:
authorAlex Pott2018-05-01 09:15:07 (GMT)
committerAlex Pott2018-05-01 09:15:07 (GMT)
commitb84b827d42512f5add026b6c930d9087c79a4b7c (patch)
treef75bcf1a9977965dd983eb5f38d0191444575e14 /core/modules/system/tests/src/Kernel/Render/ClassyTest.php
parent52fdfaa5f8d6bf6891a36ae03c2797750331014e (diff)
Issue #2935256 by Jo Fitzgerald, voleger, kim.pepper, ibustos, Yogesh Pawar, catch, jibran: Remove all usages of drupal_get_message and drupal_set_message in modules
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',
];