Problem/Motivation

Method return*() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10.

Proposed resolution

Use $double->willReturn*() instead.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3433052

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Status: Active » Needs review
Spokje’s picture

Status: Needs review » Reviewed & tested by the community

Said it before and will say it again:

Replacement makes sense, couldn't find any other occurrences than the ones in the MR, Green tests => RTBC.

mondrake’s picture

Title: Fixed remaining return*() methods of class PHPUnit\Framework\TestCase deprecated in PHPUnit 10 » Fix remaining return*() methods of class PHPUnit\Framework\TestCase deprecated in PHPUnit 10

  • catch committed a65d1f9d on 10.3.x
    Issue #3433052 by mondrake: Fix remaining return*() methods of class...

  • catch committed d671f38a on 11.x
    Issue #3433052 by mondrake: Fix remaining return*() methods of class...
catch’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

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

Status: Fixed » Closed (fixed)

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