diff --git a/core/modules/block/src/Tests/Views/DisplayBlockTest.php b/core/modules/block/src/Tests/Views/DisplayBlockTest.php index 3c0deab..072f847 100644 --- a/core/modules/block/src/Tests/Views/DisplayBlockTest.php +++ b/core/modules/block/src/Tests/Views/DisplayBlockTest.php @@ -23,6 +23,15 @@ class DisplayBlockTest extends ViewTestBase { /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + + /** * Modules to enable. * * @var array diff --git a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml index 1599f21..d7e1ca6 100644 --- a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml +++ b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml @@ -38,7 +38,7 @@ display: display_title: Block position: null display_options: - field: + fields: title: link_to_node: true label: test_view_block diff --git a/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php b/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php index cc7ae4a..52dc99b 100644 --- a/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php +++ b/core/modules/block_content/src/Tests/BlockContentCacheTagsTest.php @@ -18,6 +18,15 @@ class BlockContentCacheTagsTest extends EntityCacheTagsTestBase { /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + + /** * {@inheritdoc} */ public static $modules = array('block_content'); diff --git a/core/modules/block_content/src/Tests/BlockContentFieldTest.php b/core/modules/block_content/src/Tests/BlockContentFieldTest.php index 4fc7bf6..26d921a 100644 --- a/core/modules/block_content/src/Tests/BlockContentFieldTest.php +++ b/core/modules/block_content/src/Tests/BlockContentFieldTest.php @@ -18,6 +18,15 @@ class BlockContentFieldTest extends BlockContentTestBase { /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + + /** * Modules to enable. * * @var array diff --git a/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php b/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php index aec6f69..777ca4d 100644 --- a/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php +++ b/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php @@ -18,6 +18,16 @@ class BlockContentTranslationUITest extends ContentTranslationUITest { /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + + + /** * Modules to enable. * * @var array 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 6e4167e..ce44732 100644 --- a/core/modules/content_translation/config/schema/content_translation.schema.yml +++ b/core/modules/content_translation/config/schema/content_translation.schema.yml @@ -1,5 +1,10 @@ # Schema for the Content Translation module. +# Needs refactoring see 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 ea28195..ed2732e 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php @@ -8,7 +8,6 @@ namespace Drupal\content_translation\Tests; use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; -use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\Core\Field\Entity\BaseFieldOverride; use Drupal\Core\Language\Language; use Drupal\field\Entity\FieldConfig; @@ -21,7 +20,14 @@ */ class ContentTranslationSettingsTest extends WebTestBase { - use SchemaCheckTestTrait; + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; /** * Modules to enable. @@ -274,22 +280,4 @@ protected function entityManager() { return $this->container->get('entity.manager'); } - /** - * Asserts all active configuration matches schemas. - */ - 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) { - // 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()); - } - } - } - } diff --git a/core/modules/field/tests/modules/field_test/config/schema/field_test.schema.yml b/core/modules/field/tests/modules/field_test/config/schema/field_test.schema.yml index bc1661e..533e41d 100644 --- a/core/modules/field/tests/modules/field_test/config/schema/field_test.schema.yml +++ b/core/modules/field/tests/modules/field_test/config/schema/field_test.schema.yml @@ -24,3 +24,36 @@ entity_form_display.field.test_field_widget_multiple: test_widget_setting_multiple: type: string label: 'Test setting' + +field.test_field.storage_settings: + type: mapping + label: 'Test field settings' + mapping: + test_field_storage_setting: + type: string + label: 'Test field storage setting' + changeable: + type: string + label: 'A changeable field storage setting' + unchangeable: + type: string + label: 'An unchangeable field storage setting' + +field.test_field.field_settings: + type: mapping + label: 'Test field settings' + mapping: + test_field_setting: + type: string + label: 'Test field setting' + +field.test_field.value: + type: sequence + label: 'Default value' + sequence: + - type: mapping + label: 'Default' + mapping: + value: + type: label + label: 'Value' diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php index ba79e7d..456f911 100644 --- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php +++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php @@ -42,7 +42,6 @@ public static function defaultStorageSettings() { public static function defaultFieldSettings() { return array( 'test_field_setting' => 'dummy test string', - 'test_cached_data' => FALSE, ) + parent::defaultFieldSettings(); } diff --git a/core/modules/link/config/schema/link.schema.yml b/core/modules/link/config/schema/link.schema.yml index 9ff05fc..30505d7 100644 --- a/core/modules/link/config/schema/link.schema.yml +++ b/core/modules/link/config/schema/link.schema.yml @@ -56,3 +56,29 @@ entity_form_display.field.link_default: placeholder_title: type: label label: 'Placeholder for link text' + +field.link.storage_settings: + type: mapping + label: 'Link settings' + +field.link.field_settings: + type: mapping + label: 'Link settings' + mapping: + title: + type: integer + label: 'Allow link text' + +field.link.value: + type: sequence + label: 'Default value' + sequence: + - type: mapping + label: 'Default' + mapping: + title: + type: label + label: 'Link text' + url: + type: string + label: 'URL'