diff --git a/core/modules/config/src/Tests/ConfigCRUDTest.php b/core/modules/config/src/Tests/ConfigCRUDTest.php index b184de6..a751997 100644 --- a/core/modules/config/src/Tests/ConfigCRUDTest.php +++ b/core/modules/config/src/Tests/ConfigCRUDTest.php @@ -37,7 +37,7 @@ class ConfigCRUDTest extends KernelTestBase { * * @var array */ - public static $modules = array('system'); + public static $modules = array('system', 'config_test'); /** * Tests CRUD operations. @@ -187,7 +187,7 @@ function testNameValidation() { $config->save(); $this->pass($message); } - catch (\Exception $e) { + catch (ConfigNameException $e) { $this->fail($message); } @@ -222,7 +222,6 @@ function testValueValidation() { * Tests data type handling. */ public function testDataTypes() { - \Drupal::service('module_installer')->install(array('config_test')); $storage = new DatabaseStorage($this->container->get('database'), 'config'); $name = 'config_test.types'; $config = $this->container->get('config.factory')->get($name); diff --git a/core/modules/config/tests/config_test/config/schema/config_test.schema.yml b/core/modules/config/tests/config_test/config/schema/config_test.schema.yml index 5237146..feff6cf 100644 --- a/core/modules/config/tests/config_test/config/schema/config_test.schema.yml +++ b/core/modules/config/tests/config_test/config/schema/config_test.schema.yml @@ -112,6 +112,20 @@ config_test.system: type: string label: '404' +config_test.crud: + type: mapping + label: 'Configuration test' + mapping: + value: + type: string + label: 'Value' + '404': + type: string + label: '404' + +config_test.crud_rename_no_cache: + type: config_test.crud + config_test.new: type: mapping label: 'Configuration test' @@ -147,6 +161,9 @@ config_test.foo: config_test.bar: type: config_test.foo +namespace.object: + type: mapping + foo.bar: type: mapping mapping: