Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Mar 2026 at 18:48 UTC
Updated:
7 Apr 2026 at 11:00 UTC
Jump to comment: Most recent
Comments
Comment #2
dcam commentedComment #4
dcam commentedI've changed tactics a bit with these library tests, which you'll probably see more of later. I'm doing more of moving property instantiations out of
setUp()functions into the individual tests. There are three or four test classes where I did that in this batch.Comment #5
dcam commentedFYI: the recently-committed
UnitTestCasechanges have been merged into this MR, so they do not need to be applied separately.Comment #6
smustgrave commentedRunning this one I got about 15 errors
Comment #7
dcam commentedI'm sorry that I didn't note this earlier! It looks like one of the PHPUnit return types got changed in 12.x. I can't update it in this MR because the new class doesn't exist in the version Drupal Core depends on. So that change has to wait until we actually update the dependency, otherwise it would break our tests. That means the important thing right now is for the tests to continue passing when not run on PHPUnit 12, which they just did.
Comment #8
smustgrave commentedSurprised they are passing but clearly I can see they do. That was the only issue I found for this one.
Comment #10
catchCommitted/pushed to main, thanks!