public function forcesubmit_attempts($quiz, $dryrun = false, $groupstudents = array(), $attemptids = array())
 {
     parent::forcesubmit_attempts($quiz, $dryrun, $groupstudents, $attemptids);
 }
Example #2
0
 /**
  * Test bands.
  *
  * @dataProvider get_bands_count_and_width_provider
  * @param int $grade grade
  * @param array $expected
  */
 public function test_get_bands_count_and_width($grade, $expected)
 {
     $this->resetAfterTest(true);
     $quizgenerator = $this->getDataGenerator()->get_plugin_generator('mod_quiz');
     $quiz = $quizgenerator->create_instance(['course' => SITEID, 'grade' => $grade]);
     $this->assertEquals($expected, quiz_overview_report::get_bands_count_and_width($quiz));
 }