diff --git a/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php b/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php index be50bc6..f25019c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php @@ -50,10 +50,12 @@ function testServiceProviderRegistrationDynamic() { $container = \Drupal::getContainer(); // Uninstall the module and ensure the service provider's service is not registered. \Drupal::moduleHandler()->uninstall(array('service_provider_test')); + $container = \Drupal::getContainer(); $this->assertFalse($container->has('service_provider_test_class'), 'The service_provider_test_class service does not exist in the DIC.'); // Install the module and ensure the service provider's service is registered. \Drupal::moduleHandler()->install(array('service_provider_test')); + $container = \Drupal::getContainer(); $this->assertTrue($container->has('service_provider_test_class'), 'The service_provider_test_class service exists in the DIC.'); }