Problem/Motivation
Complete removal of PHPUnit annotations from test classes metadata, and ensure no regressions in future.
Proposed resolution
Remove annotations and adjust custom PHPStan rule to prevent regressions.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3548982
Show commands
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:
- 3548982-complete-removal-of
changes, plain diff MR !13323
Comments
Comment #2
mondrakeComment #4
mondrakeComment #5
mondrakeUnblocked
Comment #6
dcam commentedThis is my first time learning about PHPStan rules. This looks straightforward though.
The Drupal class changes are all 1-for-1 changes from annotations to attributes. I checked them all to make certain the metadata was preserved.
The rule changes are a little more difficult to understand. But they're all about taking a metadata-checking rule that formerly applied to abstract test classes and making it apply to all test classes, abstract or not.
I can't find anything to give feedback about and the PHPStan lint passed. So this looks good to me.
Comment #7
mondrakeThank you. I've added some inline comments in the rule code, to explain a bit what's going on. Leaving at RTBC as no code was changed.
Comment #8
dcam commentedThose look great! I think they help.
Comment #9
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 #10
mondrakeWell, bot...
Comment #11
alexpottCommitted and pushed d6503947baa to 11.x and 1e158cd2921 to 11.3.x. Thanks!