only in patch2: unchanged: --- /dev/null +++ b/core/modules/config/lib/Drupal/config/Tests/LocaleConfigOverride.php @@ -0,0 +1,43 @@ + 'Locale override', + 'description' => 'Confirm that locale overrides work', + 'group' => 'Configuration', + ); + } + + function testLocaleConfigOverride() { + $name = 'config_test.system'; + // Verify the default configuration values exist. + $config = config($name); + $this->assertIdentical($config->get('foo'), 'bar'); + // Spoof multilingual. + $GLOBALS['conf']['language_count'] = 2; + drupal_language_initialize(); + $config = config($name); + $this->assertIdentical($config->get('foo'), 'en bar'); + } +} only in patch2: unchanged: --- /dev/null +++ b/core/modules/config/tests/config_test/config/locale.config.en.config_test.system.yml @@ -0,0 +1 @@ +foo: en bar