Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / service_provider_test / src / TestClass.php
index d521e1fdb99a98801560774cfe83d466d3bd8e62..c4dad85955c8d28f94670d3a393dfc2851bb3566 100644 (file)
@@ -36,7 +36,7 @@ class TestClass implements EventSubscriberInterface, DestructableInterface, Cont
    * A simple kernel listener method.
    */
   public function onKernelRequestTest(GetResponseEvent $event) {
-    drupal_set_message(t('The service_provider_test event subscriber fired!'));
+    \Drupal::messenger()->addStatus(t('The service_provider_test event subscriber fired!'));
   }
 
   /**