diff --git a/core/modules/config/src/Tests/ConfigCRUDTest.php b/core/modules/config/src/Tests/ConfigCRUDTest.php index f37f215..fa8b372 100644 --- a/core/modules/config/src/Tests/ConfigCRUDTest.php +++ b/core/modules/config/src/Tests/ConfigCRUDTest.php @@ -119,13 +119,13 @@ function testCRUD() { // cache. $config_factory = $this->container->get('config.factory'); $name = 'config_test.crud_rename'; - // Remove overrides. + // Turn off overrides and pollute the non-overrides static cache. $config_factory->setOverrideState(FALSE); - // Pollute the non overrides static cache. \Drupal::config($name); + // Turn on overrides and pollute the overrides static cache. $config_factory->setOverrideState(TRUE); - // Pollute the overrides static cache. $config = \Drupal::config($name); + // Rename and ensure that happened properly. $new_name = 'config_test.crud_rename_no_cache'; $config_factory->rename($name, $new_name); $renamed_config = \Drupal::config($new_name); @@ -133,8 +133,8 @@ function testCRUD() { $this->assertIdentical($renamed_config->isNew(), FALSE); // Ensure the overrides static cache has been cleared. $this->assertIdentical(\Drupal::config($name)->isNew(), TRUE); + // Ensure the non-overrides static cache has been cleared. $config_factory->setOverrideState(FALSE); - // Ensure the non overrides static cache has been cleared. $this->assertIdentical(\Drupal::config($name)->isNew(), TRUE); $config_factory->setOverrideState(TRUE);