summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php')
-rw-r--r--core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php b/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php
index 73d6910..5e86164 100644
--- a/core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php
+++ b/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');
}