[META] Convert use of InvocationMocker::withConsecutive()

Created on 4 December 2023, 3 months ago
Updated 12 February 2024, 14 days ago


In 📌 InvocationMocker::withConsecutive() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10 RTBC Drupal created a workaround that mimics the behavior or InvocationMocker::withConsecutive() to facilitate the upgrade to PHPUnit 10 but the method was removed because it was complicated and was code smell for tests that where generally over complicated and mocking too much.


This replacement is just a stop gap though and each use should be reviewed and refactored to use a different mechanism of mocking or stubbing to improve the test.

Proposed resolution

  • Replace uses of MockTrait::consecutiveCalls
  • Deprecate MockTrait::consecutiveCalls

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task

Needs work


11.0 🔥


Last updated less than a minute ago

Created by

🇺🇸United States neclimdul Houston, TX

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build https://api.contrib.social 0.61.6-2-g546bc20