Test failure on Drupal core 10.1+

Created on 28 March 2024, 3 months ago
Updated 31 May 2024, 25 days ago

Problem/Motivation

Adding a `.gitlab-ci.yml` file in πŸ“Œ Add .gitlab-ci.yml Fixed revealed a test failure on Drupal core >=10.1.x:

PHPUnit 9.6.18 by Sebastian Bergmann and contributors.
S
.
.
F
.
...                                                            8 / 8 (100%)
Time: 00:03.254, Memory: 6.00 MB
There was 1 failure:
1) Drupal\Tests\config_snapshot\Kernel\ConfigSnapshotStorageTest::testCRUD
Failed asserting that an array is empty.
/builds/project/config_snapshot/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/builds/project/config_snapshot/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:56
/builds/project/config_snapshot/web/core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php:43
/builds/project/config_snapshot/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
FAILURES!
Tests: 8, Assertions: 56, Failures: 1, Skipped: 1.

This failure seems to be related to a change that was made in Drupal core starting with Drupal 10.1: πŸ› MemoryStorage fails with "Argument #1 ($array) must be of type array" error on calling function readMultiple() Fixed .

Steps to reproduce

Run PHPunit tests on Drupal 10.1+.

Proposed resolution

We should probably make the same change to Drupal\Tests\config_snapshot\Kernel\ConfigSnapshotStorageTest that was made to all of the core tests that extend Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase as part of πŸ› MemoryStorage fails with "Argument #1 ($array) must be of type array" error on calling function readMultiple() Fixed .

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joegraduate Arizona, USA

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