state_change__node__archived:configuration missing schema in functional tests

Created on 23 May 2022, over 2 years ago
Updated 24 February 2024, 10 months ago

Problem/Motivation

I am trying to add test coverage for Scheduler when it is used in conjunction with Workbench Moderation, and then also with Workbench Moderation Actions. Using WBM seems to be fine, but when I create a test which installs Workbench Moderation Actions I get the followning error:

Drupal\Core\Config\Schema\SchemaIncompleteException:
Schema errors for system.action.state_change__node__archived with the following errors: system.action.state_change__node__archived:configuration missing schema

/Library/WebServer/Web/drupal89dev/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:95
...
/Library/webserver/web/dr-source/modules-d8-git/workbench_moderation_actions/workbench_moderation_actions.install:35

Line 35 in .install is the loop for Action::create( )->save()

Steps to reproduce

Create a functional test and add protected static $modules = ['workbench_moderation_actions'];

Proposed resolution

I know that schemas and configs need to be added manually for Kernel tests, but for Functional tests this should be automatic. I could find not any occurence of function calls to "install.*schema" or "install.*config" in any core functional test folders.

I notice that there is no config/install and config/schema folders in this project. Is that what is missing?

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom jonathan1055

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