Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2025 at 21:09 UTC
Updated:
17 Mar 2025 at 08:54 UTC
Jump to comment: Most recent
TestXSSTitleBlock is used for old XSS tests. It only achieves the desired goal by not making the admin_label a translatable markup, something that is not possible with Attribute tests as that has a type and must be a TranslatableMarkup object.
There are also some related leftover category tests that test for a string that doens't exist anymore in core.
Changes the test to instead test with a user-provided label for a regular block and removes the category test coverage.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
berdirReady for review.
Comment #4
smustgrave commentedSeems like a good refactor without test loss
Comment #6
catchCommitted/pushed to 11.x, thanks!