Schema differs from 2.0 to 3.0 affecting testing with phpunit

Created on 6 March 2024, 4 months ago
Updated 27 May 2024, 30 days ago

Problem/Motivation

While running tests we found an issue with schema:

Drupal\Core\Config\Schema\SchemaIncompleteException: No schema for moderated_content_bulk_publish.settings

We think that the piece of code at schema for moderated_content_bulk_publish.settings at version 2.0 is necessary at 3.0. At version 3 you still have the schema file, the form but not the Form's schema. So maybe must be bring back.

We will provide a patch and if maintainers agree, we can create the merge request, prepare the code and move this forward.

Also during first patch testing we found that settings are not ok:

disable_toolbar_language_switcher: 0
enable_dialog_node_edit_form: 1
enable_dialog_admin_content: 1
current_translation_only: 0

Because then we cannot set the field at schema as 'boolean', we must add as 'integer', which is not good because we should be managing boolean for such fields.

Providing first a patch to unblock our site and then we will create a MR to solve the issue and add a test.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇪🇸Spain abelcain Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024