diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php index cf7cc08..4082dfa 100644 --- a/core/modules/config/src/Tests/ConfigSchemaTest.php +++ b/core/modules/config/src/Tests/ConfigSchemaTest.php @@ -61,6 +61,8 @@ function testSchemaMapping() { $expected = array(); $expected['label'] = 'Schema test data'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; + $expected['mapping']['langcode']['type'] = 'string'; + $expected['mapping']['langcode']['label'] = 'Language code'; $expected['mapping']['testitem'] = array('label' => 'Test item'); $expected['mapping']['testlist'] = array('label' => 'Test list'); $expected['type'] = 'config_schema_test.someschema'; @@ -114,6 +116,10 @@ function testSchemaMapping() { $expected['label'] = 'Ignore test'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition'; + $expected['mapping']['langcode'] = array( + 'type' => 'string', + 'label' => 'Language code', + ); $expected['mapping']['label'] = array( 'label' => 'Label', 'type' => 'label', @@ -222,6 +228,8 @@ function testSchemaMapping() { $expected = array(); $expected['label'] = 'Schema multiple filesytem marker test'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; + $expected['mapping']['langcode']['type'] = 'string'; + $expected['mapping']['langcode']['label'] = 'Language code'; $expected['mapping']['testid']['type'] = 'string'; $expected['mapping']['testid']['label'] = 'ID'; $expected['mapping']['testdescription']['type'] = 'text'; @@ -396,6 +404,8 @@ function testSchemaFallback() { $expected['label'] = 'Schema wildcard fallback test'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition'; + $expected['mapping']['langcode']['type'] = 'string'; + $expected['mapping']['langcode']['label'] = 'Language code'; $expected['mapping']['testid']['type'] = 'string'; $expected['mapping']['testid']['label'] = 'ID'; $expected['mapping']['testdescription']['type'] = 'text';