mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-59395 core_user: fixed random PHPUnit failure
Part of MDL-59290.
This commit is contained in:
parent
688892d66f
commit
7a1c830b0b
@ -867,7 +867,7 @@ class core_userliblib_testcase extends advanced_testcase {
|
|||||||
|
|
||||||
// Now, when we perform the following search we should only return 2 users. Users who belong to
|
// Now, when we perform the following search we should only return 2 users. Users who belong to
|
||||||
// the group and have the name 'searchforthis' and have also accessed the site in the last day.
|
// the group and have the name 'searchforthis' and have also accessed the site in the last day.
|
||||||
$userset = user_get_participants(SITEID, $group->id, $accesssince + 1, 0, 'searchforthis');
|
$userset = user_get_participants(SITEID, $group->id, $accesssince + 1, 0, 'searchforthis', '', array(), 'ORDER BY id ASC');
|
||||||
|
|
||||||
$this->assertEquals($user1->id, $userset->current()->id);
|
$this->assertEquals($user1->id, $userset->current()->id);
|
||||||
$userset->next();
|
$userset->next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user