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

Command icon 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:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Assigned: mondrake » Unassigned
Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Searched 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.

  • catch committed 3df8fe0a on 10.3.x
    Issue #3436680 by mondrake: Method getMockForAbstractClass() of class...

  • catch committed a73a32ba on 11.x
    Issue #3436680 by mondrake: Method getMockForAbstractClass() of class...
catch’s picture

Version: 11.x-dev » 10.3.x-dev

Yes looks straightforward enough.

Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.