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 class ContentEntityBaseUnitTest
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3489380
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:
- 3489380-method-getmockforabstractclass-is
changes, plain diff MR !10305
Comments
Comment #3
mondrakeComment #4
smustgrave commentedReviewed the change and don't believe any coverage has been lost and inline with other changes like this.
LGTM
Comment #5
quietone commentedI think there should be return types on the new methods in the stub file.
Comment #7
anish.ir commentedHey,
I have added the return types to the stub file as suggested.
Please review.
Comment #8
smustgrave commentedReturn types appear to have been added.
Comment #11
larowlanCommitted to 11.x - thanks!