diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEventsTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEventsTest.php index 437a813..b24370b 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEventsTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEventsTest.php @@ -69,12 +69,10 @@ function testConfigEvents() { * Tests configuration rename event that is fired from the ConfigFactory. */ function testConfigRenameEvent() { - global $conf; - $name = 'config_events_test.test'; $new_name = 'config_events_test.test_rename'; - $conf[$name] = array('key' => 'overridden'); - $conf[$new_name] = array('key' => 'new overridden'); + $GLOBALS['config'][$name] = array('key' => 'overridden'); + $GLOBALS['config'][$new_name] = array('key' => 'new overridden'); $config = \Drupal::config($name); $config->set('key', 'initial')->save();