MDL-59395 core_user: fixed random PHPUnit failure

Part of MDL-59290.
This commit is contained in:
Mark Nelson 2017-07-06 14:54:40 +08:00
parent 688892d66f
commit 7a1c830b0b

View File

@ -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
// 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);
$userset->next();