X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FServiceProvider%2FServiceProviderWebTest.php;h=5e86164f6e6dc2504bac02d91034315b4a9a0d17;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=73d6910087dfcf4824fa5de0eb1da376d8f5ddb7;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php b/web/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php index 73d691008..5e86164f6 100644 --- a/web/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php +++ b/web/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php @@ -26,9 +26,10 @@ class ServiceProviderWebTest extends BrowserTestBase { */ public function testServiceProviderRegistrationIntegration() { $this->assertTrue(\Drupal::hasService('service_provider_test_class'), 'The service_provider_test_class service has been registered to the DIC'); - // The event subscriber method in the test class calls drupal_set_message() - // with a message saying it has fired. This will fire on every page request - // so it should show up on the front page. + // The event subscriber method in the test class calls + // \Drupal\Core\Messenger\MessengerInterface::addStatus() with a message + // saying it has fired. This will fire on every page request so it should + // show up on the front page. $this->drupalGet(''); $this->assertText(t('The service_provider_test event subscriber fired!'), 'The service_provider_test event subscriber fired'); }