Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
760292ee
Commit
760292ee
authored
Jun 26, 2013
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2017217
by alexpott: Fixed Random failure on UserPasswordResetTest.
parent
b537ccd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
core/modules/user/lib/Drupal/user/Tests/UserPasswordResetTest.php
...ules/user/lib/Drupal/user/Tests/UserPasswordResetTest.php
+8
-0
No files found.
core/modules/user/lib/Drupal/user/Tests/UserPasswordResetTest.php
View file @
760292ee
...
...
@@ -39,6 +39,14 @@ public function setUp() {
$this
->
account
=
user_load
(
$account
->
uid
);
$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
();
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment