diff -u b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php --- b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php @@ -252,7 +252,8 @@ public function testConfigSaveWithSchema() { $untyped_values = array( 'string' => 1, - 'null_string' => '', + 'empty_string' => '', + 'null_string' => NULL, 'integer' => '100', 'null_integer' => '', 'boolean' => 1, @@ -267,10 +268,10 @@ 'not_present_in_schema' => TRUE, ); $untyped_to_typed = $untyped_values; - $untyped_to_typed['null_string'] = NULL; $typed_values = array( 'string' => '1', + 'empty_string' => '', 'null_string' => NULL, 'integer' => 100, 'null_integer' => NULL, diff -u b/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 --- b/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 @@ -108,6 +108,8 @@ type: string null_string: type: string + empty_string: + type: string boolean: type: boolean no_type: