Merge branch 'MDL-63711-master-fix' of git://github.com/junpataleta/moodle

This commit is contained in:
Andrew Nicols 2018-11-06 14:20:24 +08:00 committed by David Monllao
commit 6d47156f75

View File

@ -390,12 +390,12 @@ class core_grades_privacy_testcase extends provider_testcase {
$userlist = new \core_privacy\local\request\userlist($c1ctx, 'core_grades');
provider::get_users_in_context($userlist);
$course1userids = [$u1->id, $u2->id, $u3->id, $u4->id];
$this->assertEquals($course1userids, $userlist->get_userids());
$this->assertEquals($course1userids, $userlist->get_userids(), '', 0.0, 10, true);
$userlist = new \core_privacy\local\request\userlist($c2ctx, 'core_grades');
provider::get_users_in_context($userlist);
$course2userids = [$u5->id, $u2->id];
$this->assertEquals($course2userids, $userlist->get_userids());
$this->assertEquals($course2userids, $userlist->get_userids(), '', 0.0, 10, true);
$userlist = new \core_privacy\local\request\userlist($u2ctx, 'core_grades');
provider::get_users_in_context($userlist);