コード例 #1
0
ファイル: base_test.php プロジェクト: alanaipe2015/moodle
 public function testable_process_set_batch_marking_workflow_state($selectedusers, $state)
 {
     global $CFG;
     require_once $CFG->dirroot . '/mod/assign/batchsetmarkingworkflowstateform.php';
     // Simulate the form submission.
     $data = array();
     $data['id'] = $this->get_course_module()->id;
     $data['selectedusers'] = $selectedusers;
     $data['markingworkflowstate'] = $state;
     $data['action'] = 'setbatchmarkingworkflowstate';
     mod_assign_batch_set_marking_workflow_state_form::mock_submit($data);
     return parent::process_set_batch_marking_workflow_state();
 }
コード例 #2
0
 public function testable_process_set_batch_marking_workflow_state($selectedusers, $state)
 {
     // Ugly hack to get something into the method.
     global $_POST;
     $_POST['selectedusers'] = $selectedusers;
     $_POST['markingworkflowstate'] = $state;
     return parent::process_set_batch_marking_workflow_state();
 }