Problem/Motivation
Method getMockForAbstractClass() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10
Proposed resolution
In this issue,fix ContentEntityBase mocks.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3436680
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:
- 3436680-method-getmockforabstractclass-of
changes, plain diff MR !7226
Comments
Comment #3
mondrakeComment #4
smustgrave commentedSearched for ->getMockBuilder('Drupal\Core\Entity\ContentEntityBase') and all 10 instances seem to be replaced.
The replacement seems like a good refactor as nothing broke. Going to lean on that fact and mark.
Comment #7
catchYes looks straightforward enough.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
Comment #8
catch