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.
Tests on Drupal 9 are currently failing:
https://www.drupal.org/pift-ci-job/1655810
One of the errors is:
The @expectedException, @expectedExceptionCode, @expectedExceptionMessage, and @expectedExceptionMessageRegExp annotations are deprecated. They will be removed in PHPUnit 9. Refactor your test to use expectException(), expectExceptionCode(), expectExceptionMessage(), or expectExceptionMessageRegExp() instead.
So test methods defining @expectedException
should be refactored to use a call to expectException()
instead.
See also the parent issue: #3129112: [meta] Drupal 9 support
Comment | File | Size | Author |
---|---|---|---|
#2 | feeds-d9-expected-exception-deprecations-3129113-2.patch | 19.74 KB | MegaChriz |
Comments
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis patch could fix all
@expectedException
deprecations.Comment #4
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedCommitted #2.