public function UserPasswordResetTestCase::generateResetURL in Drupal 7
Generates login link.
2 calls to UserPasswordResetTestCase::generateResetURL()
- UserPasswordResetTestCase::testUserPasswordReset in modules/
user/ user.test - Tests password reset functionality.
- UserPasswordResetTestCase::testUserPasswordResetLoggedIn in modules/
user/ user.test - Test user password reset while logged in.
File
- modules/
user/ user.test, line 511 - Tests for user.module.
Class
- UserPasswordResetTestCase
- Tests resetting a user password.
Code
public function generateResetURL($account, $bypass_form = FALSE) {
return user_pass_reset_url($account) . ($bypass_form ? '/login' : '');
}