Problem/Motivation
PHPUnit 9 deprecated ::expectError*() and ::expectWarning*()methods. They're removed from PHPUnit 10.
Proposed resolution
Replace trigger_error() with an exceptoin.
Issue fork drupal-3427172
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:
- 3427172-exception
changes, plain diff MR !7398
- 3427172-replace-calls-to
changes, plain diff MR !7000
Comments
Comment #3
mondrakeComment #4
mondrakeComment #5
mondrakeComment #6
longwaveWondering if this one also should just be an exception or assertion.
Comment #7
longwaveOriginally added in #2972003: Verify that the file name matches the ID when installing configuration
At the time we were worried about breaking sites so it was "only" a warning in D8, I think we can upgrade this to an exception now for 11.x.
Comment #9
longwaveComment #11
mondrakeMR 7398 is a completely different approach from MR 7000, so I think I can RTBC it.
Comment #13
catchCommitted/pushed to 11.x, thanks!