Problem/Motivation
Method getMockForAbstractClass() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10.
Some uses were removed as part of #3217904: [meta] Support PHPUnit 10 in Drupal 11, but there's a relevant number of places where this is still used.
Proposed resolution
Replace in most remaining views plugins. One instance remains, but that needs a general entity stub and will require a separate issue.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3480419
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:
- 3480419-method-getmockforabstractclass-is
changes, plain diff MR !9833
Comments
Comment #3
mondrakeComment #4
smustgrave commentedSeems like a good refactor.
Wonder eventually if it should be documented somewhere all these Stubs?
Comment #5
catchNeeds a rebase for the phpstan baseline.
Comment #6
mondrakerebased
Comment #7
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 #8
mondrakerebased
Comment #11
quietone commented@mondrake, thanks for keeping this up to date.
Committed to 11.x and cherry-picked to 11.1.x
Thanks!