Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2026 at 00:55 UTC
Updated:
28 Jul 2026 at 08:25 UTC
Jump to comment: Most recent
There are still more that can be changed. Hopefully this is the last set.
git grep -l FormattableMarkup | grep -i tests | sort -u | grep -v UserHooksTest | grep -v FormattableMarkupKernelTest | grep -v MarkupInterfaceComparatorTest | grep -v TwigMarkupInterfaceTest.php | grep -v FormattableMarkupTest.php | grep -v PlainTextOutputTest.php | grep -v TranslatableMarkupTest.php
In comment or string array key
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 #3
quietone commentedComment #4
smustgrave commentedAppears to need a rebase please.
Comment #5
quietone commentedRebased. There was a conflict in \Drupal\Tests\comment\Functional\CommentTestBase::setCommentAnonymous that required a new line of code to get a value from an Enum. So setting to review for that.
Comment #6
smustgrave commentedFrom what I can tell these are good conversion (just using eyeball test). To avoid multiple rerolls for quietone going to go ahead and mark. Know there is a parent ticket for this so if any left overs they'll get covered.
Comment #7
longwaveAdded some questions to the MR.
Also there's a bunch of cases where we are outputting markup and were relying on the
@syntax to escape HTML, do we need to concern ourselves with explicitly escaping in any cases here?Comment #8
quietone commentedI updated the MR for @longwave's feedback.
Comment #9
dcam commentedI found another issue. Please see the comment on the MR.
Comment #10
quietone commented@dcam, thanks for the review and the suggestion.
I applied the suggestion and made a followup to possibly remove the unused assertion methods in NodeTestBase, #3608091: Remove unused assertion methods in \Functional\NodeTestBase.
Comment #11
dcam commentedLooks good. Thank you.
Comment #12
catchCommitted/pushed to main, thanks!
Doesn't cherry-pick to 11.x and don't think we need it there.