
Problem/Motivation
PHPUnit 10 deprecates use of non-static @dataProvider methods.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3443536
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:
- 3443536-change-dataprovider-to
changes, plain diff MR !7765
Comments
Comment #2
mondrakeComment #3
longwaveFairly straightforward, move the mocks into the test method and control their creation via boolean flags - there were already if statements to handle them anyway.
Comment #5
smustgrave CreditAttribution: smustgrave at Mobomo commentedSeems like a good refactor.
Comment #8
catchCommitted/pushed to 11.x and cherry-picked to 10.3.x, thanks!