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
Drupal\Tests\Core\StackMiddleware\ReverseProxyMiddlewareTest::testReverseProxyEnabledLegacy() is a legacy test that is skipped on Symfony 4 as it is only relevant to Symfony 3 and below. Drupal 9 ships with a minimum of Symfony 4 so the test is obsolete.
Proposed resolution
Remove the test.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3135302.patch | 3.42 KB | longwave |
Comments
Comment #2
longwaveComment #3
longwaveComment #4
Kristen PolThanks for the patch.
1) Applies cleanly to 8.9, 9.0, and 9.1.
2) Reviewed the code being removed.
Shows skipped for < Symfony 4.
Shows removal for 9.0.0 and Symfony 4.0.
Same.
3) Tests pass.
4) Seems RTBC to me but general question: should each of these types of removals be handled one by one or should there be a big issue for a bunch or maybe at least a meta issue?
Comment #5
longwaveThanks for the review :)
#4.1 This should *not* be backported to 8.9 as we are still on Symfony 3 there.
#4.4 I don't really know, I filed a few similar issues but they aren't really related to each other except that they are stragglers left over from the Symfony 4.4 upgrade. Maybe we need a "Remove compatibility shims for Symfony 4.3 and earlier" meta issue to tie them together?
Comment #6
Kristen PolGotcha. A meta issue certainly wouldn't hurt. :) Marking this one RTBC. Thanks for the patch and feedback.
Comment #7
longwaveComment #10
xjmCommitted to 9.1.x and cherry-picked to 9.0.x as a D9-only test cleanup. Thanks for the great review and discussion on this issue; made it a lot easier to validate and commit this patch.