Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
assertNotRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDoesNotMatchRegularExpression() instead.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#9 | reroll_diff_5-9.txt | 3.3 KB | Spokje |
#9 | 3217711-9.patch | 5.42 KB | Spokje |
#5 | 3217711-5.patch | 5.54 KB | sudiptadas19 |
Comments
Comment #2
longwaveComment #3
guilhermevp CreditAttribution: guilhermevp at CI&T commentedSending patch!
Comment #4
mondrakeThank you.
We also need to remove from
Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations
the corresponding deprecation silencer, so that if any instance remains, or other patches try to introduce back the old method, we have the testing framework informing us about that.See #3174200: Use PHPUnit-bridge polyfills for forward compatibility layer for an example.
Comment #5
sudiptadas19 CreditAttribution: sudiptadas19 at QED42 for Drupal India Association commented@mondrake added mention changes. Please review it.
Comment #6
mondrakeRTBC. The PHP 7.3 test is green, indicating tests run OK on PHPUnit8. Deprecation silencer removed and all conversions done.
Even if this is a small patch, please add an interdiff when adding patches after the first one, so to facilitate reviewing. Thanks!
Comment #7
catchNeeds a re-roll.
Comment #8
SpokjeRe-rolling
Comment #9
SpokjeComment #10
SpokjeComment #11
SpokjeBack to RTBC per #6
Comment #12
longwaveComment #13
Spokjetips hat @longwave
Comment #16
catchCommitted/pushed to 9.3.x, and then to 9.2.x without the deprecation suppression removal.
Comment #17
mondrakeDoes it make sense to keep the deprecation suppression in 9.2? It's a PHPUnit deprecation, not Drupal's where the minor matters.
Comment #18
catch@mondrake the issue is that modules that were passing tests with rc1 could start failing tests with 9.2.0 (if they have deprecation fails switched on). We never unsuppress deprecation warnings in patch releases, and rcs fall under the same approach.
Comment #19
mondrake#18 ah ok got it, thanks