Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Mar 2026 at 15:06 UTC
Updated:
16 Apr 2026 at 16:40 UTC
Jump to comment: Most recent
Comments
Comment #2
debdeep.mukhopadhyay commentedI am working on this
Comment #3
debdeep.mukhopadhyay commentedHi @mondrake,
Thank you for reporting this issue.
I have tested this on a fresh Drupal setup using the latest development codebase (Drupal 11.x-dev) with PHP 8.5 via DDEV.
### What I checked:
* Searched the entire core codebase for `PhpunitCompatibilityTrait` and found no occurrences.
* Verified related PHPUnit usages (e.g., `getMock()`, deprecated patterns) across core test files.
* Ran PHPUnit tests locally (`ddev exec phpunit core/tests`) to ensure the test suite executes correctly.
### Result:
* The trait `PhpunitCompatibilityTrait` is no longer present in the codebase.
* PHPUnit tests are running successfully (progress reaching ~99% before completion).
* This indicates that the compatibility-related issues mentioned here have already been addressed.
### Conclusion:
Based on the above verification, it appears that this issue has already been resolved in the current codebase.
Could you please confirm from your side and update the issue status accordingly?
Thank you!
Comment #5
mondrake@debdeep.mukhopadhyay I am not sure what you tested in #3, since I added a MR afterwards.
The MR removes the trait, and the version dependent aliased trait.
Comment #6
smustgrave commented@debdeep.mukhopadhyay pretty obvious you used AI so sharing an issue etiquette link https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett...
Unrelated. Seems like a good removal.
Comment #8
amateescu commentedCommitted af34409 and pushed to main. Thanks!
Comment #11
mondrake