Problem/Motivation

PHPUnit is deprecating withConsecutive(), so we need to find replacements.

Steps to reproduce

Proposed resolution

Based on #3306554-29: InvocationMocker::withConsecutive() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10 we can use callbacks to assert the order of arguments.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3417560

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

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Change looks good/no coverage lost.

catch’s picture

Status: Reviewed & tested by the community » Needs work

Needs a rebase.

longwave’s picture

Status: Needs work » Needs review

Rebased.

  • catch committed 77a137f2 on 10.2.x
    Issue #3417560 by longwave: Remove withConsecutive() in...

  • catch committed 74fac8eb on 11.x
    Issue #3417560 by longwave: Remove withConsecutive() in...
catch’s picture

Status: Needs review » Fixed

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

Status: Fixed » Closed (fixed)

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