Skip to content

Commit

Permalink
MDL-35382 fix random course test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 6, 2012
1 parent ccd90e7 commit 3a222db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/tests/courselib_test.php
Expand Up @@ -70,7 +70,7 @@ public function test_reorder_sections() {
$course = $this->getDataGenerator()->create_course(array('numsections'=>10), array('createsections'=>true));
$oldsections = array();
$sections = array();
foreach ($DB->get_records('course_sections', array('course'=>$course->id)) as $section) {
foreach ($DB->get_records('course_sections', array('course'=>$course->id), 'id') as $section) {
$oldsections[$section->section] = $section->id;
$sections[$section->id] = $section->section;
}
Expand Down

0 comments on commit 3a222db

Please sign in to comment.