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 class ConfigEntityStorageTest

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3472115

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.

prashant.c made their first commit to this issue’s fork.

prashant.c’s picture

Status: Active » Needs review
prashant.c’s picture

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

No coverage has been lost and seems inline with how others have been.

mondrake’s picture

Title: Method getMockForAbstractClass() is deprecated in PHPUnit 10 - replace in class class ConfigEntityStorageTest » Method getMockForAbstractClass() is deprecated in PHPUnit 10 - replace in class ConfigEntityStorageTest

  • catch committed a5d30edd on 11.x
    Issue #3472115 by mondrake, prashant.c: Method getMockForAbstractClass...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

Status: Fixed » Closed (fixed)

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