Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function UserPasswordResetTestCase::generateResetURL

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 553

Class

UserPasswordResetTestCase
Tests resetting a user password.

Code

public function generateResetURL($account, $bypass_form = FALSE) {
 return user_pass_reset_url ($account) . ($bypass_form ? '/login' : '');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.