Skip to content
Snippets Groups Projects
Commit 760292ee authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2017217 by alexpott: Fixed Random failure on UserPasswordResetTest.

parent b537ccd5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -39,6 +39,14 @@ public function setUp() { ...@@ -39,6 +39,14 @@ public function setUp() {
$this->account = user_load($account->uid); $this->account = user_load($account->uid);
$this->drupalLogout(); $this->drupalLogout();
// Set the last login time that is used to generate the one-time link so
// that it is definitely over a second ago.
$account->login = REQUEST_TIME - mt_rand(10, 100000);
db_update('users')
->fields(array('login' => $account->login))
->condition('uid', $account->uid)
->execute();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment