Problem/Motivation
Since symfony/http-foundation 5.1: The "Symfony\Component\HttpFoundation\Response::create()" method is deprecated, use "new Drupal\Core\Render\HtmlResponse()" instead.
1x in ManyPlaceholderTest::testManyNoJsPlaceHolders from Drupal\Tests\big_pipe\Unit\Render
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_4-6.txt | 718 bytes | ravi.shankar |
| #6 | 3161992-6.patch | 2.49 KB | ravi.shankar |
| #4 | interdiff-2-4.txt | 720 bytes | hardik_patel_12 |
| #4 | 3161992-4.patch | 2.49 KB | hardik_patel_12 |
Comments
Comment #2
catchComment #3
longwaveThere is a third case that looks like it needs changing too:
Comment #4
hardik_patel_12 commentedChanging in core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php file also , kindly review.
Comment #5
longwaveI think this should be
new HtmlResponse()as per coding standards.Comment #6
ravi.shankar commentedHere this patch might fix comment #5.
Comment #7
longwaveThanks!
Comment #8
alexpottCommitted and pushed 91ffbf84e7 to 9.1.x and 87f5ac8935 to 9.0.x. Thanks!
Backported to 9.0.x to keep the tests aligned as this only touches tests.