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::drupalLogin() uses $user
as the user account to log in within the child environment. Usually, $user
is reserved for the currently logged in user global.
Proposed resolution
Rename $user
to $account
within WebTestBase::drupalLogin()
.
Comment | File | Size | Author |
---|---|---|---|
#4 | 1898314-D7-reanme.patch | 1.37 KB | droplet |
#1 | 1898314.patch | 1.56 KB | droplet |
Comments
Comment #1
droplet CreditAttribution: droplet commentedComment #2
tstoecklerRTBC if it comes back green.
Comment #3
webchickThanks. This actually caused a bunch of confusion in a recent review, so glad to see this fixed.
Committed and pushed to 8.x. Back to 7.x for backport.
Comment #4
droplet CreditAttribution: droplet commentedComment #5
tstoecklerLet's do it! :-)
Comment #6
David_Rothstein CreditAttribution: David_Rothstein commentedCommitted to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/94739f0