Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / src / Kernel / Render / ClassyTest.php
index 8dbb01e5d057706a12fb22165597e7df3fa8fdf3..8d1cb854812680b2c5b20f399149516e82bb43a0 100644 (file)
@@ -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',
     ];