diff --git a/core/modules/content_translation/config/schema/content_translation.schema.yml b/core/modules/content_translation/config/schema/content_translation.schema.yml index 73214c3..6e4167e 100644 --- a/core/modules/content_translation/config/schema/content_translation.schema.yml +++ b/core/modules/content_translation/config/schema/content_translation.schema.yml @@ -1,11 +1,5 @@ # Schema for the Content Translation module. -# Not possible to provide schema due to https://www.drupal.org/node/2248709 -# @todo Refactor settings in https://www.drupal.org/node/2363155 -content_translation.settings: - type: ignore - label: 'Content translation settings' - field_config.third_party.content_translation: type: mapping label: 'Content translation field settings' diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php index 5ca67ab..ea28195 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php @@ -182,7 +182,7 @@ function testSettingsUI() { $this->assertEqual($field->isTranslatable(), $definitions['body']->isTranslatable(), 'Configurable field translatability correctly switched.'); } - $this->assertAllConfigSchema(); + $this->assertConfigSchemas(); } /** @@ -277,14 +277,18 @@ protected function entityManager() { /** * Asserts all active configuration matches schemas. */ - protected function assertAllConfigSchema() { + protected function assertConfigSchemas() { $names = $this->container->get('config.storage')->listAll(); $factory = $this->container->get('config.factory'); /** @var \Drupal\Core\Config\TypedConfigManagerInterface $typed_config */ $typed_config = $this->container->get('config.typed'); foreach ($names as $name) { - $config = $factory->get($name); - $this->assertConfigSchema($typed_config, $name, $config->get()); + // It is not possible to provide schema due to https://www.drupal.org/node/2248709 + // @todo Refactor settings in https://www.drupal.org/node/2363155 + if ($name != 'content_translation.settings') { + $config = $factory->get($name); + $this->assertConfigSchema($typed_config, $name, $config->get()); + } } }