public function testable_process_set_batch_marking_allocation($selectedusers, $markerid) { global $CFG; require_once $CFG->dirroot . '/mod/assign/batchsetallocatedmarkerform.php'; // Simulate the form submission. $data = array(); $data['id'] = $this->get_course_module()->id; $data['selectedusers'] = $selectedusers; $data['allocatedmarker'] = $markerid; $data['action'] = 'setbatchmarkingallocation'; mod_assign_batch_set_allocatedmarker_form::mock_submit($data); return parent::process_set_batch_marking_allocation(); }
public function testable_process_set_batch_marking_allocation($selectedusers, $markerid) { // Ugly hack to get something into the method. global $_POST; $_POST['selectedusers'] = $selectedusers; $_POST['allocatedmarker'] = $markerid; return parent::process_set_batch_marking_allocation(); }