\Drupal\Tests\ckeditor5\Kernel\ValidatorsTest::test() obscures 2nd, 3rd etc violation message for the same property path

Created on 22 August 2023, over 1 year ago
Updated 25 September 2023, over 1 year ago

Problem/Motivation

Discovered in 📌 Configuration schema & required keys Fixed that

   foreach ($violations as $violation) {
     $actual_violations[$violation->getPropertyPath()] = (string) $violation->getMessage();
…

is wrong: if there's >1 violation for the same property path, the above will only keep the last one!

Steps to reproduce

N/A

Proposed resolution

Fix it by using the same logic as \Drupal\Tests\ckeditor5\Kernel\CKEditor5ValidationTestTrait::validatePairToViolationsArray().

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 13 hours ago

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

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

Comments & Activities

Production build 0.71.5 2024