mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-58465 unittests: Fix invalid use of exception
This commit is contained in:
parent
216ea39be7
commit
75c597daed
1 changed files with 2 additions and 2 deletions
|
@ -483,7 +483,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
|
||||||
$this->assertEquals($courseinfo->numsections, $course3options['numsections']);
|
$this->assertEquals($courseinfo->numsections, $course3options['numsections']);
|
||||||
$this->assertEquals($courseinfo->coursedisplay, $course3options['coursedisplay']);
|
$this->assertEquals($courseinfo->coursedisplay, $course3options['coursedisplay']);
|
||||||
} else {
|
} else {
|
||||||
throw moodle_exception('Unexpected shortname');
|
throw new moodle_exception('Unexpected shortname');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1137,7 +1137,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
|
||||||
$this->assertEquals(0, $courseinfo->newsitems);
|
$this->assertEquals(0, $courseinfo->newsitems);
|
||||||
$this->assertEquals(FORMAT_MOODLE, $courseinfo->summaryformat);
|
$this->assertEquals(FORMAT_MOODLE, $courseinfo->summaryformat);
|
||||||
} else {
|
} else {
|
||||||
throw moodle_exception('Unexpected shortname');
|
throw new moodle_exception('Unexpected shortname');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue