Merge branch 'MDL-59395_master-fix' of github.com:markn86/moodle

This commit is contained in:
Jake Dallimore 2017-07-06 15:20:41 +08:00
commit d5d70e57a4
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ Feature: User can view activity log.
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "img.userpicture" "css_element" in the "Student 1" "table_row"
When I follow "Today's logs"
And I should see "Assignment: Test assignment name"
And I follow "Student 1"
@ -54,7 +54,7 @@ Feature: User can view activity log.
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "img.userpicture" "css_element" in the "Student 1" "table_row"
When I follow "Today's logs"
And I should see "No log reader enabled"
And I follow "Student 1"

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();