mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-35388 modifications to allow php unit tests to be run
This commit is contained in:
parent
b224ff57cc
commit
2cffef9f41
2 changed files with 50 additions and 38 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue