diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigLocaleOverrideWebTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigLocaleOverrideWebTest.php
new file mode 100644
index 0000000..1b03ff2
--- /dev/null
+++ b/core/modules/config/lib/Drupal/config/Tests/ConfigLocaleOverrideWebTest.php
@@ -0,0 +1,52 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\config\Tests\ConfigLocaleOverrideWebTest.
+ */
+
+namespace Drupal\config\Tests;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Tests langugae overrides in configuration through the request.
+ */
+class ConfigLocaleOverrideWebTest extends WebTestBase {
+
+  public static $modules = array('locale', 'language', 'system', 'config_test');
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Locale overrides through the request',
+      'description' => 'Tests locale overrides applied through the website.',
+      'group' => 'Configuration',
+    );
+  }
+
+  function setUp() {
+    parent::setUp();
+  }
+
+  /**
+   * Tests translating the site name.
+   */
+  function testSiteNameTranslation() {
+    $adminUser = $this->drupalCreateUser(array('administer site configuration', 'administer languages'));
+    $this->drupalLogin($adminUser);
+
+    // Add French and make it the site default language.
+    $this->drupalPost('admin/config/regional/language/add', array('predefined_langcode' => 'fr'), t('Add language'));
+
+    // The home page in English should not have the override.
+    $this->drupalGet('');
+    $this->assertNoText('French site name');
+
+    // config_test module includes a locale.config.fr.system.site.yml which
+    // overrides the site name to 'French site name'. Ensure that it applies
+    // when we access the French page.
+    $this->drupalGet('fr');
+    $this->assertText('French site name');
+  }
+
+}
diff --git a/core/modules/config/tests/config_test/config/locale.config.fr.system.site.yml b/core/modules/config/tests/config_test/config/locale.config.fr.system.site.yml
new file mode 100644
index 0000000..0e4081b
--- /dev/null
+++ b/core/modules/config/tests/config_test/config/locale.config.fr.system.site.yml
@@ -0,0 +1 @@
+name: 'French site name'
