Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Oct 2025 at 20:11 UTC
Updated:
29 Jan 2026 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
mondrakeComment #4
mondrakeComment #5
mondrakeComment #7
dcam commentedLooks like this was rebased at just the wrong moment today. #2353881: Add test coverage for file entity reference selection plugin broke head and that change was merged in to this issue's fork. It was fixed right away and I've started a rebase with that fix.
Comment #8
dcam commentedI'm guessing that a complete review of this would involve running all the tests with PHPUnit 12. I didn't do that. That would take all night on my laptop.
I did manual checks of the providers and the changes made to the test classes. Everything looks ok to me. The only bit of feedback that I had was for
UnroutedUrlTest::testFromUri(). Its parameters didn't have the type hints added like all of the other test functions that are dependent on::providerFromUri(), including::testIsExternal()which had both of the parameters and required no modification. This is merely a lack of consistency and not something that I feel should hold up the issue. So I'm going to go ahead and mark this as RTBC.Comment #9
mondrakeThanks!
Since we are at it, lets’s do #8.
If you are intersted, the MR in the parent is running tests with PHPUnit 12. It’s my reference to see reported results that lead to issues like this one.
Comment #10
mondrakeComment #11
dcam commentedThank you for the tip!
My feedback was addressed. This is RTBC to me.
Comment #12
mondrakeLet's extend to Kernel tests data providers, too - now we have a clean report of the failures in #3527936: Introduce support for PHPUnit 12.
Comment #13
mondrakeComment #14
mondrakeComment #15
mondrakeBlocker is in.
Comment #16
dcam commentedI manually verified all recent changes since my last review, comparing provider return values to the new test definitions. They all look good to me.
Comment #17
mondrakeComment #18
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #19
mondrakerebased
Comment #22
longwaveNice cleanup, I like the use of @final in UnitTestCaseTest to stop us extending it by mistake again!
Backported to 11.x to keep things in sync.
Committed and pushed 33a27cd673d to main and 1db7f532c7b to 11.x. Thanks!