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
WebTestBase contains a query. And it's not necessary.
Proposed resolution
Fake a request and replace the cookies with the cURL cookies then call the session handler to read the session.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff.txt | 898 bytes | chx |
#2 | 2422257_2.patch | 1.24 KB | chx |
Comments
Comment #1
dawehnerIts a little bit sad how much effort you need in order to figure this out. At least the new code does not hardcode the hashing algorithm. Note: There is a helper $request->duplicate(NULL, NULL, NULL, NULL, $cookies); which would make the code a bit easier.
Comment #2
chx CreditAttribution: chx commentedSure.
Comment #3
dawehnerCool
Comment #6
daffie CreditAttribution: daffie commentedBack to RTBC.
Comment #7
alexpottTest changes are not frozen in beta. Committed e4e8f31 and pushed to 8.0.x. Thanks!