diff --git a/report/log/tests/behat/user_log.feature b/report/log/tests/behat/user_log.feature index 356468dbb7b..4f4bb3421f2 100644 --- a/report/log/tests/behat/user_log.feature +++ b/report/log/tests/behat/user_log.feature @@ -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" diff --git a/user/tests/userlib_test.php b/user/tests/userlib_test.php index 1edb2bad475..54b4db072c4 100644 --- a/user/tests/userlib_test.php +++ b/user/tests/userlib_test.php @@ -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();