diff --git a/core/modules/editor/src/Tests/EditorAdminTest.php b/core/modules/editor/src/Tests/EditorAdminTest.php index e133a26fb5f2386d72383856f00ee68a34f3a261..1e72494623d32180407766def5252ce8742beb70 100644 --- a/core/modules/editor/src/Tests/EditorAdminTest.php +++ b/core/modules/editor/src/Tests/EditorAdminTest.php @@ -154,7 +154,7 @@ protected function verifyUnicornEditorConfiguration($format_id, $foo = 'bar') { $settings = $editor->getSettings(); $this->assertIdentical($editor->getEditor(), 'unicorn', 'The text editor is configured correctly.'); $this->assertIdentical($settings['foo'], $foo, 'The text editor settings are stored correctly.'); - $this->assertIdentical($settings['ponies too'], true, 'The text editor defaults are retrieved correctly.'); + $this->assertIdentical($settings['ponies_too'], true, 'The text editor defaults are retrieved correctly.'); $this->assertIdentical($settings['rainbows'], true, 'The text editor defaults added by hook_editor_settings_defaults() are retrieved correctly.'); $this->assertIdentical($settings['sparkles'], false, 'The text editor defaults modified by hook_editor_settings_defaults_alter() are retrieved correctly.'); $this->drupalGet('admin/config/content/formats/manage/'. $format_id); diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationTest.php index 33077c3414e6fcf801d472dde646558ed165a65a..9f70a14a6477fa69a4364d84ae51087afb6a7641 100644 --- a/core/modules/editor/src/Tests/QuickEditIntegrationTest.php +++ b/core/modules/editor/src/Tests/QuickEditIntegrationTest.php @@ -24,6 +24,17 @@ */ class QuickEditIntegrationTest extends QuickEditTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @todo Altering not schema compatible. https://www.drupal.org/node/2389697 + * + * @var bool + */ + protected $strictConfigSchema = FALSE; + /** * {@inheritdoc} */ diff --git a/core/modules/editor/tests/modules/config/schema/editor_test.schema.yml b/core/modules/editor/tests/modules/config/schema/editor_test.schema.yml new file mode 100644 index 0000000000000000000000000000000000000000..6900e2f416d53e8edd9d54afb2184fb5eee138aa --- /dev/null +++ b/core/modules/editor/tests/modules/config/schema/editor_test.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Editor test module. + +editor.settings.unicorn: + type: mapping + label: 'Unicorn settings' + mapping: + ponies_too: + type: string + label: 'Ponies too' diff --git a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php index fcc2c901f6d070b7451764124a3df872b399e08d..49644e599248094286a7f6dc1d6d3af2381aea07 100644 --- a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php +++ b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php @@ -28,7 +28,7 @@ class UnicornEditor extends EditorBase { * {@inheritdoc} */ function getDefaultSettings() { - return array('ponies too' => TRUE); + return array('ponies_too' => TRUE); } /** @@ -49,7 +49,7 @@ function settingsForm(array $form, FormStateInterface $form_state, EditorEntity function getJSSettings(EditorEntity $editor) { $js_settings = array(); $settings = $editor->getSettings(); - if ($settings['ponies too']) { + if ($settings['ponies_too']) { $js_settings['ponyModeEnabled'] = TRUE; } return $js_settings; diff --git a/core/modules/entity_reference/src/Tests/Views/SelectionTest.php b/core/modules/entity_reference/src/Tests/Views/SelectionTest.php index e71737c1c604199ce918efcda8260c3cdf7c09ba..1fbe5cb54c70fe726e8f384ca33e8954d766dbfa 100644 --- a/core/modules/entity_reference/src/Tests/Views/SelectionTest.php +++ b/core/modules/entity_reference/src/Tests/Views/SelectionTest.php @@ -16,6 +16,15 @@ */ class SelectionTest extends WebTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + public static $modules = array('node', 'views', 'entity_reference', 'entity_reference_test', 'entity_test'); /** @@ -51,7 +60,6 @@ public function testSelectionHandler() { 'settings' => array( 'handler' => 'views', 'handler_settings' => array( - 'target_bundles' => array(), 'view' => array( 'view_name' => 'test_entity_reference', 'display_name' => 'entity_reference_1', diff --git a/core/modules/field/src/Tests/DisplayApiTest.php b/core/modules/field/src/Tests/DisplayApiTest.php index 4123ab31ee3112c83f7f473c97a88980b4d14c97..513de0bc0986a3b6b70a5374f01424cf9caaad0b 100644 --- a/core/modules/field/src/Tests/DisplayApiTest.php +++ b/core/modules/field/src/Tests/DisplayApiTest.php @@ -16,6 +16,15 @@ */ class DisplayApiTest extends FieldUnitTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * The field name to use in this test. * diff --git a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php index 939cfc4db7bb10888a887f0c4f81b9a98aa15fa6..18808187960aa8bd10cdef9e6a42a4b01d41bb27 100644 --- a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php +++ b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php @@ -18,6 +18,15 @@ */ class FieldImportDeleteUninstallUiTest extends FieldTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php index 67c8baa519840d54b16d24b63cec9c398104eff5..fde1f290844ccc75f1ea427b17130d5b0ab590d1 100644 --- a/core/modules/field/src/Tests/FormTest.php +++ b/core/modules/field/src/Tests/FormTest.php @@ -18,6 +18,15 @@ */ class FormTest extends FieldTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * @@ -587,7 +596,7 @@ function testHiddenField() { // Update the field to remove the default value, and switch to the default // widget. - $this->field->default_value = NULL; + $this->field->default_value = array(); $this->field->save(); entity_get_form_display($entity_type, $this->field->bundle, 'default') ->setComponent($this->field->getName(), array( diff --git a/core/modules/field/src/Tests/ShapeItemTest.php b/core/modules/field/src/Tests/ShapeItemTest.php index 548d63e1c73e8f8125877b84faaacd727333a8b8..05c1606ed37d5952d1f4f30dbb8b8f1a716f68ae 100644 --- a/core/modules/field/src/Tests/ShapeItemTest.php +++ b/core/modules/field/src/Tests/ShapeItemTest.php @@ -17,6 +17,15 @@ */ class ShapeItemTest extends FieldUnitTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/field/src/Tests/TestItemWithDependenciesTest.php b/core/modules/field/src/Tests/TestItemWithDependenciesTest.php index b5ad7e123477d394a7f1afdb9cbd65b40e6c7a33..684cc0f0cc13b82a35c6dcb516192d526d524eba 100644 --- a/core/modules/field/src/Tests/TestItemWithDependenciesTest.php +++ b/core/modules/field/src/Tests/TestItemWithDependenciesTest.php @@ -14,6 +14,15 @@ */ class TestItemWithDependenciesTest extends FieldUnitTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/field/tests/modules/field_plugins_test/config/schema/field_plugins_test.schema.yml b/core/modules/field/tests/modules/field_plugins_test/config/schema/field_plugins_test.schema.yml new file mode 100644 index 0000000000000000000000000000000000000000..a7d58c0009930ca6261c9fb097988aa5ca3866c3 --- /dev/null +++ b/core/modules/field/tests/modules/field_plugins_test/config/schema/field_plugins_test.schema.yml @@ -0,0 +1,7 @@ +field.formatter.settings.field_plugins_test_text_formatter: + type: field.formatter.settings.text_trimmed + label: 'Test text formatter display format settings' + +field.widget.settings.field_plugins_test_text_widget: + type: field.widget.settings.text_textfield + label: 'Test text field widget settings' 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 01b3aa6a48564e9a29abbefdf22e10e9ee5af568..0ff333e425d3d6aa2ca000f700154515ff98b781 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 @@ -1,6 +1,14 @@ +field.formatter.settings.field_test_default: + type: mapping + label: 'Field test default display format settings' + mapping: + test_formatter_setting: + type: string + label: 'Test setting' + field.formatter.settings.field_test_multiple: type: mapping - label: 'field_test display format settings' + label: 'Multiple field test display format settings' mapping: test_formatter_setting_multiple: type: string @@ -9,9 +17,33 @@ field.formatter.settings.field_test_multiple: type: boolean label: 'Test altering' +field.formatter.settings.field_empty_setting: + type: mapping + label: 'Empty setting field display format settings' + mapping: + field_empty_setting: + type: string + label: 'Test setting' + +field.formatter.settings.field_test_with_prepare_view: + type: mapping + label: 'Field prepare step display format settings' + mapping: + test_formatter_setting_additional: + type: string + label: 'Test setting' + +field.widget.settings.test_field_widget: + type: mapping + label: 'Test field widget settings' + mapping: + test_widget_setting: + type: string + label: 'Test setting' + field.widget.settings.test_field_widget_multiple: type: mapping - label: 'field_test display format settings' + label: 'Test multiple field widget settings' mapping: test_widget_setting_multiple: type: string @@ -19,7 +51,7 @@ field.widget.settings.test_field_widget_multiple: field.storage_settings.test_field: type: mapping - label: 'Test field settings' + label: 'Test field storage settings' mapping: test_field_storage_setting: type: string @@ -31,14 +63,30 @@ field.storage_settings.test_field: type: string label: 'An unchangeable field storage setting' +field.storage_settings.test_field_with_dependencies: + type: field.storage_settings.test_field + label: 'Test field with dependencies storage settings' + +field.storage_settings.hidden_test_field: + type: field.storage_settings.test_field + label: 'Hidden test field storage settings' + field.field_settings.test_field: type: mapping - label: 'Test field settings' + label: 'Test field field settings' mapping: test_field_setting: type: string label: 'Test field setting' +field.field_settings.test_field_with_dependencies: + type: field.field_settings.test_field + label: 'Test field with dependencies field settings' + +field.field_settings.hidden_test_field: + type: field.field_settings.test_field + label: 'Hidden test field field settings' + field.value.test_field: type: mapping label: 'Default value' @@ -46,3 +94,11 @@ field.value.test_field: value: type: label label: 'Value' + +entity_view_display.third_party.field_test: + type: mapping + label: 'Field test entity display third party setting' + mapping: + foo: + type: string + label: 'Test setting' diff --git a/core/modules/field_ui/src/Tests/EntityDisplayTest.php b/core/modules/field_ui/src/Tests/EntityDisplayTest.php index 82003d8146e4b6697fd96760f348763a2cb39e17..efcd9e05817c22a449e8e73e5421e54738ee11d4 100644 --- a/core/modules/field_ui/src/Tests/EntityDisplayTest.php +++ b/core/modules/field_ui/src/Tests/EntityDisplayTest.php @@ -17,6 +17,15 @@ */ class EntityDisplayTest extends KernelTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + public static $modules = array('field_ui', 'field', 'entity_test', 'user', 'text', 'field_test', 'node', 'system', 'entity_reference'); protected function setUp() { @@ -48,7 +57,7 @@ public function testEntityDisplayCRUD() { $this->assertEqual($display->getComponent('component_2'), $expected['component_2']); // Check that arbitrary options are correctly stored. - $expected['component_3'] = array('weight' => 10, 'foo' => 'bar'); + $expected['component_3'] = array('weight' => 10, 'third_party_settings' => array('field_test' => array('foo' => 'bar'))); $display->setComponent('component_3', $expected['component_3']); $this->assertEqual($display->getComponent('component_3'), $expected['component_3']); diff --git a/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php b/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php index 057d575c76133c2908970df9d2cced34900bb24b..5ce4e9af1d24d34e37d6bb762fc90787e3e4780b 100644 --- a/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php +++ b/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php @@ -17,6 +17,15 @@ */ class EntityFormDisplayTest extends KernelTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + public static $modules = array('field_ui', 'field', 'entity_test', 'field_test', 'user', 'text', 'entity_reference'); protected function setUp() { diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php index d0edeef9e313325ae93400967e5595ebe1eaa2f2..5c8e276abf52dd36a468f9027acbf6b27d6e633d 100644 --- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php +++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php @@ -8,7 +8,6 @@ namespace Drupal\field_ui\Tests; use Drupal\Component\Utility\Unicode; -use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Language\LanguageInterface; use Drupal\simpletest\WebTestBase; @@ -20,7 +19,15 @@ */ class ManageDisplayTest extends WebTestBase { - use SchemaCheckTestTrait; + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + use FieldUiTestTrait; /** @@ -141,7 +148,6 @@ function testFormatterUI() { $display = entity_load('entity_view_display', 'node.' . $this->type . '.default', TRUE); $this->assertEqual($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_field_formatter_third_party_settings_form'), 'foo'); $this->assertTrue(in_array('field_third_party_test', $display->calculateDependencies()['module']), 'The display has a dependency on field_third_party_test module.'); - $this->assertConfigSchema(\Drupal::service('config.typed'), $display->getEntityType()->getConfigPrefix() . '.' . $display->id(), $display->toArray()); // Confirm that the third party settings are not updated on the settings form. $this->drupalPostAjaxForm(NULL, array(), "field_test_settings_edit"); @@ -248,7 +254,6 @@ public function testWidgetUI() { $display = entity_load('entity_form_display', 'node.' . $this->type . '.default', TRUE); $this->assertEqual($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form'), 'foo'); $this->assertTrue(in_array('field_third_party_test', $display->calculateDependencies()['module']), 'Form display does not have a dependency on field_third_party_test module.'); - $this->assertConfigSchema(\Drupal::service('config.typed'), $display->getEntityType()->getConfigPrefix() . '.' . $display->id(), $display->toArray()); // Confirm that the third party settings are not updated on the settings form. $this->drupalPostAjaxForm(NULL, array(), "field_test_settings_edit"); diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index 8c2adb66610e6a1a37a6ce33966a041141f42f0e..84fbca612f1f3628db15a8279d5ef772169903d3 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -21,6 +21,15 @@ */ class ManageFieldsTest extends WebTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + use FieldUiTestTrait; /** diff --git a/core/modules/link/config/schema/link.schema.yml b/core/modules/link/config/schema/link.schema.yml index d489174402cd580c5819e0ab0bf372b8c5092bd3..01a8a65d9ec70e8a3387680cf02d8799f6b18189 100644 --- a/core/modules/link/config/schema/link.schema.yml +++ b/core/modules/link/config/schema/link.schema.yml @@ -21,18 +21,8 @@ field.formatter.settings.link: label: 'Open link in new window' field.formatter.settings.link_separate: - type: mapping + type: field.formatter.settings.link label: 'Link format settings' - mapping: - trim_length: - type: integer - label: 'Trim link text length' - rel: - type: string - label: 'Add rel="nofollow" to links' - target: - type: string - label: 'Open link in new window' field.widget.settings.link_default: type: mapping diff --git a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php index c88b8ff7a9440d9bf2be27342433fdb88e6e0ce2..3642a1fef300f853e836efe3e6bb0485f97632ab 100644 --- a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php +++ b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php @@ -33,7 +33,7 @@ class LinkSeparateFormatter extends LinkFormatter { */ public static function defaultSettings() { return array( - 'trim_length' => '80', + 'trim_length' => 80, 'rel' => '', 'target' => '', ) + parent::defaultSettings(); diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php index 97058f045a893cd8bec7e0978515f6b959ab34e2..685b14539c4e92323f039bcd35e2cd1993f99213 100644 --- a/core/modules/link/src/Tests/LinkFieldTest.php +++ b/core/modules/link/src/Tests/LinkFieldTest.php @@ -20,6 +20,15 @@ */ class LinkFieldTest extends WebTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php b/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php index 10dc01571b1d0f80d9acbfa27a2a113a0e64d44e..d32d336ab2d7dfae6ad2f60ed66ecb011e0e0e55 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php @@ -62,7 +62,7 @@ public function getSettings($widget_type, $widget_settings) { 'placeholder' => '', ), 'link' => array( - 'placeholder_uri' => '', + 'placeholder_url' => '', 'placeholder_title' => '', ), 'filefield_widget' => array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php index 09b922c87b2b00da68d0d8113b3ac87bdc0e5bb6..e970272a7a27d9f3d7dc7e67d81299e4f7c0354d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php @@ -17,6 +17,15 @@ */ class MigrateFieldWidgetSettingsTest extends MigrateDrupalTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/options/src/Tests/OptionsFloatFieldImportTest.php b/core/modules/options/src/Tests/OptionsFloatFieldImportTest.php index 0f8414f5eae135234de4dc42d20e750b9ebeda53..a555339de046d514ea2e178bdb1810841afd3baa 100644 --- a/core/modules/options/src/Tests/OptionsFloatFieldImportTest.php +++ b/core/modules/options/src/Tests/OptionsFloatFieldImportTest.php @@ -18,6 +18,15 @@ */ class OptionsFloatFieldImportTest extends FieldTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * diff --git a/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.default.yml b/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.default.yml index d2a3b182342e35046c0ca36547589faaacc4d5d1..7128ee4557624c545fe603961660c74136c9c28a 100644 --- a/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.default.yml +++ b/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.default.yml @@ -23,6 +23,4 @@ content: third_party_settings: { } hidden: langcode: true -third_party_settings: - entity_test: - foo: bar +third_party_settings: { } diff --git a/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.teaser.yml b/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.teaser.yml index a6a9b6024c7b1b0f103cc395198d1ec5f4c65665..fe1e4608267d1248fadbcd8449e83f85029143c1 100644 --- a/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.teaser.yml +++ b/core/modules/options/tests/options_config_install_test/config/install/core.entity_view_display.node.options_install_test.teaser.yml @@ -25,6 +25,4 @@ content: third_party_settings: { } hidden: langcode: true -third_party_settings: - entity_test: - foo: bar +third_party_settings: { } diff --git a/core/modules/quickedit/src/Tests/QuickEditTestBase.php b/core/modules/quickedit/src/Tests/QuickEditTestBase.php index e08ec2ee39274040cc7c4541e6850507c29a9651..1536194c3c4c8a88de250746b8fa84c8f373d1d4 100644 --- a/core/modules/quickedit/src/Tests/QuickEditTestBase.php +++ b/core/modules/quickedit/src/Tests/QuickEditTestBase.php @@ -14,6 +14,15 @@ */ abstract class QuickEditTestBase extends KernelTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * @@ -92,7 +101,6 @@ protected function createFieldWithStorage($field_name, $type, $cardinality, $lab entity_get_form_display('entity_test', 'entity_test', 'default') ->setComponent($field_name, array( 'type' => $widget_type, - 'label' => $label, 'settings' => $widget_settings, )) ->save(); diff --git a/core/modules/system/src/Tests/Entity/EntityQueryRelationshipTest.php b/core/modules/system/src/Tests/Entity/EntityQueryRelationshipTest.php index 04def245b595629dcac7e440748f0c3fc2c21593..4c8269ab586121a4f349b9ecc29bd202ca851dca 100644 --- a/core/modules/system/src/Tests/Entity/EntityQueryRelationshipTest.php +++ b/core/modules/system/src/Tests/Entity/EntityQueryRelationshipTest.php @@ -15,6 +15,15 @@ */ class EntityQueryRelationshipTest extends EntityUnitTestBase { + /** + * Set to TRUE to strict check all configuration saved. + * + * @see \Drupal\Core\Config\Testing\ConfigSchemaChecker + * + * @var bool + */ + protected $strictConfigSchema = TRUE; + /** * Modules to enable. * @@ -81,7 +90,9 @@ protected function setUp() { 'type' => 'taxonomy_term_reference', 'settings' => array( 'allowed_values' => array( - 'vocabulary' => $vocabulary->id(), + array( + 'vocabulary' => $vocabulary->id(), + ), ), ), ))->save(); diff --git a/core/modules/system/tests/modules/entity_test/config/schema/entity_test.schema.yml b/core/modules/system/tests/modules/entity_test/config/schema/entity_test.schema.yml index 85a19e841470cc5e3f337477e3053e32e875d820..5a3ad024e9a1c42339e5099cbb9015745709712e 100644 --- a/core/modules/system/tests/modules/entity_test/config/schema/entity_test.schema.yml +++ b/core/modules/system/tests/modules/entity_test/config/schema/entity_test.schema.yml @@ -5,3 +5,11 @@ entity_view_display.third_party.entity_test: foo: type: string label: 'Label for foo' + +field.storage_settings.shape: + type: mapping + label: 'Shape field storage settings' + mapping: + foreign_key_name: + type: string + label: 'Foreign key name'