Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Aug 2026 at 14:33 UTC
Updated:
8 Sep 2026 at 20:00 UTC
Jump to comment: Most recent
Comments
Comment #2
catchComment #4
smustgrave commentedUnrelated javascript failures. LGTM.
Comment #5
catchThis wasn't doing a lot for the test timing.
Found three methods which are easy to collapse into one which should do a bit more.
Comment #6
smustgrave commentedCombining also seems to work, lets ship it.
Comment #7
mstrelan commentedLeft a question on the MR
Comment #8
smustgrave commentedMaybe we should open a policy ticket to discuss that?
Other consolidated tests seem to following the same
https://git.drupalcode.org/project/drupal/-/commit/24b7c3ffa3a759d7b6b19...
While others were changed
https://git.drupalcode.org/project/drupal/-/commit/3a2d8705b21a1bfeabd65...
I assume we will land on changing and prefixing with doTest so maybe we can do here too?
Comment #9
catchI think
protected doTestmakes it more obvious what's happening if you just scan the file.Comment #10
catchComment #11
mstrelan commentedI think this is fine now and matches other tests in core.
I'm not bothered enough to open a coding standards ticket for it, but if one were so inclined I think something as simple as "Only use
testmethod prefix for public test cases" would suffice. I'm sure it would be fairly straightforward to write a sniff for this too.Comment #12
godotislate1 Q on the MR.
Comment #13
catchThat was cruft for this issue, moved to #3614817: Reduce functional test job CPU and concurrency where it belongs. Good spot.
Comment #16
godotislateCommitted and pushed 510a7a2 to main and 729b7c3 and pushed to 11.x. Thanks!