diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php index 1cada7a..a8fa13a 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php @@ -268,6 +268,8 @@ public function testConfigSaveWithSchema() { 'not_present_in_schema' => TRUE, // Test a custom type. 'config_test_integer' => '1', + 'sequence' => array (1, 0, 1), + 'type' => 'boolean' ); $untyped_to_typed = $untyped_values; @@ -286,6 +288,8 @@ public function testConfigSaveWithSchema() { 'null_float' => NULL, 'not_present_in_schema' => TRUE, 'config_test_integer' => 1, + 'sequence' => array (TRUE, FALSE, TRUE), + 'type' => 'boolean' ); // Save config which has a schema that enforces types. 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 b9a4706..232af27 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 @@ -125,3 +125,12 @@ config_test.schema_data_types: mapping: string: type: string + sequence: + type: sequence + sequence: + - type: config_test_sequence.[%parent.%parent.type] + type: + type: string + +config_test_sequence.boolean: + type: boolean