Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Config / ConfigInstallTest.php
index 9e473c29ff69a423b01c1608b2c30d35bec1aa33..5efd20bbb15dfdc5626ddb030471e6bafc022b51 100644 (file)
@@ -253,6 +253,14 @@ class ConfigInstallTest extends KernelTestBase {
     );
   }
 
+  /**
+   * Tests installing configuration where the filename and ID do not match.
+   */
+  public function testIdMisMatch() {
+    $this->setExpectedException(\PHPUnit_Framework_Error_Warning::class, 'The configuration name "config_test.dynamic.no_id_match" does not match the ID "does_not_match"');
+    $this->installModules(['config_test_id_mismatch']);
+  }
+
   /**
    * Installs a module.
    *