Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2009 at 20:19 UTC
Updated:
20 Jan 2009 at 11:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidDo we have a need to re-use this feature? If so, then I'm for it, but this code is executed a lot so it needs to be considered. It seems like it would be easy to do this outside of drupalLogin() and in the test code and leave drupalLogin() simplified.
Comment #2
dries commentedPatch needs more code comments. Thanks!
Comment #3
damien tournoud commentedI don't see the point of this neither. drupalLogin() is not supposed to update the passed $user. If you need the full-featured $user, why not calling user_load() yourself?
Comment #4
sunMeh. Then let's at least add this caveat to the PHPDoc, so others don't need to waste hours of debugging why their tests don't work as expected.
Comment #5
damien tournoud commentedGreat.
Comment #6
drewish commentedhumm this issue kind of affects #287292: Add functionality to impersonate a user
Comment #7
drewish commentedhumm this issue kind of affects #287292: Add functionality to impersonate a user
Comment #8
dries commentedThe example is a bit confusing. What exactly are we doing with
raw_passhere and why? Could use better documentation, or a better example.Comment #9
dries commentedComment #10
sunAdded a use-case for re-assigning the raw user password.
Comment #11
dries commentedCommitted to CVS HEAD. Thanks.