Update config 'maxlength_attributes' default value to integer to fix broken tests

Created on 10 January 2024, 6 months ago
Updated 14 June 2024, 12 days ago

Problem/Motivation

During tests, the following error appears:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for block_class.settings with the following errors: block_class.settings:maxlength_attributes variable type is boolean but applied schema class is Drupal\Core\TypedData\Plugin\DataType\IntegerData

This is because maxlength_attributes is set to FALSE in block_class.settings.yml.

Steps to reproduce

Run functional tests on a site that uses block_class.

Proposed resolution

Make maxlength_attributes nullable and set it to NULL instead of FALSE.

Remaining tasks

Implement.

User interface changes

None.

API changes

None.

Data model changes

maxlength_attributes becomes a nullable integer.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024