diff --git a/core/modules/config/src/Tests/ConfigCRUDTest.php b/core/modules/config/src/Tests/ConfigCRUDTest.php index 6258ccc..e127892 100644 --- a/core/modules/config/src/Tests/ConfigCRUDTest.php +++ b/core/modules/config/src/Tests/ConfigCRUDTest.php @@ -150,6 +150,12 @@ function testCRUD() { $new_config->save(); $this->assertIdentical($new_config->get('value'), $expected_values['value']); $this->assertIdentical($new_config->get('404'), $expected_values['404']); + + // Test that getMultiple() does not return new config objects that were + // previously accessed with get() + $new_config = $config_factory->get('non_existing_key'); + $this->assertTrue($new_config->isNew()); + $this->assertEqual(0, count($config_factory->loadMultiple(['non_existing_key'])), 'loadMultiple() does not return new objects'); } /**