Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 37... Línea 37...
37
 * @package   core_question
37
 * @package   core_question
38
 * @category  test
38
 * @category  test
39
 * @copyright 2013 The Open University
39
 * @copyright 2013 The Open University
40
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
41
 */
41
 */
42
class datalib_reporting_queries_test extends \qbehaviour_walkthrough_test_base {
42
final class datalib_reporting_queries_test extends \qbehaviour_walkthrough_test_base {
Línea 43... Línea 43...
43
 
43
 
44
    /** @var question_engine_data_mapper */
44
    /** @var question_engine_data_mapper */
Línea 45... Línea 45...
45
    protected $dm;
45
    protected $dm;
Línea 371... Línea 371...
371
        quiz_attempt_save_started($quizobj, $quba, $attempt);
371
        quiz_attempt_save_started($quizobj, $quba, $attempt);
Línea 372... Línea 372...
372
 
372
 
373
        // Submit attempt.
373
        // Submit attempt.
374
        $attemptobj = quiz_attempt::create($attempt->id);
374
        $attemptobj = quiz_attempt::create($attempt->id);
375
        $attemptobj->process_submitted_actions($timenow, false);
375
        $attemptobj->process_submitted_actions($timenow, false);
-
 
376
        $attemptobj->process_submit($timenow, false);
Línea 376... Línea 377...
376
        $attemptobj->process_finish($timenow, false);
377
        $attemptobj->process_grade_submission($timenow);
377
 
378
 
378
        // Calculate the statistics.
379
        // Calculate the statistics.
379
        $this->expectOutputRegex('~.*Calculations completed.*~');
380
        $this->expectOutputRegex('~.*Calculations completed.*~');