mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 05:00:06 +01:00
Merge branch 'wip-mdl-55042' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
2e87e3ce90
@ -2019,7 +2019,7 @@ class core_course_courselib_testcase extends advanced_testcase {
|
||||
|
||||
// Create the course with sections.
|
||||
$course = $this->getDataGenerator()->create_course(array('numsections' => 10), array('createsections' => true));
|
||||
$sections = $DB->get_records('course_sections', array('course' => $course->id));
|
||||
$sections = $DB->get_records('course_sections', array('course' => $course->id), 'section');
|
||||
$coursecontext = context_course::instance($course->id);
|
||||
$section = array_pop($sections);
|
||||
course_delete_section($course, $section);
|
||||
|
Loading…
x
Reference in New Issue
Block a user