diff --git a/core/modules/language/src/Tests/LanguageConfigurationElementTest.php b/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
index 6815955..8702290 100644
--- a/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
@@ -139,4 +139,36 @@ public function testNodeTypeUpdate() {
     $configuration = language_get_default_configuration('node', 'article_2');
     $this->assertEqual($configuration, array('langcode' => 'current_interface', 'language_show' => TRUE), 'The default language configuration has been kept on the new Article content type.');
   }
+
+  /**
+   * Tests the language setting are deleted from config file on bundle delete.
+   */
+  public function testLanguageConfigurationElementDelete() {
+    // Create the article content type first if the profile used is not the
+    // standard one.
+    if ($this->profile != 'standard') {
+      $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
+    }
+    $admin_user = $this->drupalCreateUser(array('administer content types'));
+    $this->drupalLogin($admin_user);
+
+    // Create are language configuration for the articles.
+    $edit = array(
+      'language_configuration[langcode]' => 'current_interface',
+      'language_configuration[language_show]' => TRUE,
+    );
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+
+    // Check the language default configuration for the articles is present.
+    $configuration = \Drupal::config('language.settings')->get(language_get_default_configuration_settings_key('node', 'article'));
+    $this->assertNotNull($configuration, 'The language configuration is present.');
+
+    // Delete the articles bundle.
+    $this->drupalPostForm('admin/structure/types/manage/article/delete', array(), t('Delete'));
+
+    // Check that the language configuration have been deleted.
+    $configuration = \Drupal::config('language.settings')->get(language_get_default_configuration_settings_key('node', 'article'));
+    $this->assertNull($configuration, 'The language configuration were deleted after bundle were deleted.');
+  }
+
 }
