MDL-35388 modifications to allow php unit tests to be run

This commit is contained in:
Paul Charsley 2012-09-13 13:44:05 +12:00
parent b224ff57cc
commit 2cffef9f41
2 changed files with 50 additions and 38 deletions

View file

@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
* @param mod_assign_mod_form $form
* @return int The instance id of the new assignment
*/
function assign_add_instance(stdClass $data, mod_assign_mod_form $form) {
function assign_add_instance(stdClass $data, mod_assign_mod_form $form = null) {
global $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');