PHPUnit fails with PHP Fatal error due to missing ConfigStorageTestTrait as there is no longer a dependency on config_filter

Created on 25 June 2024, 6 months ago
Updated 28 June 2024, 6 months ago

Problem/Motivation

Running PHPUnit fails

$ ./vendor/bin/phpunit
PHP Fatal error:  Trait "Drupal\Tests\config_filter\Kernel\ConfigStorageTestTrait" not found in /var/www/html/web/modules/contrib/config_split/tests/src/Kernel/InactiveSplitTest.php on line 14

Steps to reproduce

Create a site with config_split enabled
Do not also require config_filter
Run PHPUnit

Proposed resolution

Amend config_split/tests/src/Kernel/InactiveSplitTest.php
Remove or replace the reference to:
use Drupal\Tests\config_filter\Kernel\ConfigStorageTestTrait;
&
use ConfigStorageTestTrait;

2nd solution
add the requirement for drupal/config_flter back into the composer.json and config_split.info.yml files.

Remaining tasks

Choose an approach
Implement the Solution
Test

Feature request
Status

Closed: works as designed

Version

2.0

Component

Documentation

Created by

🇬🇧United Kingdom the_g_bomb

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

Comments & Activities

Production build 0.71.5 2024