Fix SchemaIncompleteException in tests

Created on 13 December 2025, about 1 month ago

Problem/Motivation

🐛 Revision object is returned instead of revision id due to core type upcasting change. Needs review
While testing StaticPageTest::testNodeRevisionRouteParameterIsHandled, a schema validation error occurs:

Drupal\Core\Config\Schema\SchemaIncompleteException: No schema for static_page.fields

This indicates that configuration data for static_page.fields exists but has no corresponding schema definition.

Having missing schema causes test failures when ConfigSchemaChecker is enabled and can lead to misinterpretation of configuration in strict environments.

Steps to reproduce

See https://git.drupalcode.org/issue/static_page-3386719/-/jobs/7655691

Proposed resolution

Define a schema entry for static_page.fields in config/schema/static_page.schema.yml.
The schema should describe the expected structure and data types of the fields configuration.
This will allow ConfigSchemaChecker to validate the configuration correctly and resolve the test failure.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024