Skip to content

Commit

Permalink
MDL-55981 core: Correct availability tests to use editingteacher
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 24, 2016
1 parent 4ceed4d commit 5fe4bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion availability/condition/group/tests/condition_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function test_filter_users() {
$course = $generator->create_course();
$roleids = $DB->get_records_menu('role', null, '', 'shortname, id');
$teacher = $generator->create_user();
$generator->enrol_user($teacher->id, $course->id, $roleids['teacher']);
$generator->enrol_user($teacher->id, $course->id, $roleids['editingteacher']);
$allusers = array($teacher->id => $teacher);
$students = array();
for ($i = 0; $i < 3; $i++) {
Expand Down
2 changes: 1 addition & 1 deletion availability/condition/grouping/tests/condition_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function test_filter_users() {
$course = $generator->create_course();
$roleids = $DB->get_records_menu('role', null, '', 'shortname, id');
$teacher = $generator->create_user();
$generator->enrol_user($teacher->id, $course->id, $roleids['teacher']);
$generator->enrol_user($teacher->id, $course->id, $roleids['editingteacher']);
$allusers = array($teacher->id => $teacher);
$students = array();
for ($i = 0; $i < 3; $i++) {
Expand Down

0 comments on commit 5fe4bd6

Please sign in to comment.