X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigInstallTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigInstallTest.php;h=5efd20bbb15dfdc5626ddb030471e6bafc022b51;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9e473c29ff69a423b01c1608b2c30d35bec1aa33;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php index 9e473c29f..5efd20bbb 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php @@ -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. *