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
AssertLegacyTrait::assertNoRaw() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead. See https://www.drupal.org/node/3129738
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3227060
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:
- 3227060-9.2.x changes, plain diff MR !1027
- 3227060-replace-usages-of changes, plain diff MR !1023
Comments
Comment #3
mondrakeRemove deprecation silencer to see how many we have to convert.
Comment #4
mondrakeComment #5
mondrakeComment #6
daffie CreditAttribution: daffie commentedThe deprecation message supression has been removed.
All usage of assertNoRaw() has been replaced.
For me is it RTBC.
Comment #8
catchCommitted e33e4c7 and pushed to 9.3.x. Thanks!
We should backport this to 9.2.x to help other patches - needs a re-roll for some hunks, and also the 9.2.x version should not remove the deprecation suppression.
Comment #12
ankithashettyRe-rolled against 9.2.x branch and retained the deprecation message suppression. Kindly review, thanks!
Comment #13
daffie CreditAttribution: daffie commentedI am missing the change to core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php. See: https://git.drupalcode.org/project/drupal/-/commit/e33e4c7?page=4
Comment #14
longwave@daffie we can't remove deprecation skips in a patch release of 9.2.x, this is the change that @catch asked for in #8.
Comment #15
daffie CreditAttribution: daffie commented@longwave: Thanks for pointing it out. I missed it.
I did a side by side comparison of the commit and the MR and all the changes match up.
For me it is RTBC.
Comment #16
catchCommitted/pushed to 9.2.x, thanks!