Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 53... Línea 53...
53
    }
53
    }
Línea 54... Línea 54...
54
 
54
 
55
    /**
55
    /**
56
     * Test the quiz question data for changed version in the slots.
56
     * Test the quiz question data for changed version in the slots.
57
     */
57
     */
58
    public function test_quiz_questions_for_changed_versions() {
58
    public function test_quiz_questions_for_changed_versions(): void {
59
        $this->resetAfterTest();
59
        $this->resetAfterTest();
60
        $quiz = $this->create_test_quiz($this->course);
60
        $quiz = $this->create_test_quiz($this->course);
61
        // Test for questions from a different context.
61
        // Test for questions from a different context.
62
        $context = \context_module::instance(get_coursemodule_from_instance("quiz", $quiz->id, $this->course->id)->id);
62
        $context = \context_module::instance(get_coursemodule_from_instance("quiz", $quiz->id, $this->course->id)->id);
Línea 132... Línea 132...
132
    }
132
    }
Línea 133... Línea 133...
133
 
133
 
134
    /**
134
    /**
135
     * Test if changing the version of the slot changes the attempts.
135
     * Test if changing the version of the slot changes the attempts.
136
     */
136
     */
137
    public function test_quiz_question_attempts_with_changed_version() {
137
    public function test_quiz_question_attempts_with_changed_version(): void {
138
        $this->resetAfterTest();
138
        $this->resetAfterTest();
139
        $quiz = $this->create_test_quiz($this->course);
139
        $quiz = $this->create_test_quiz($this->course);
140
        // Test for questions from a different context.
140
        // Test for questions from a different context.
141
        $context = \context_module::instance(get_coursemodule_from_instance("quiz", $quiz->id, $this->course->id)->id);
141
        $context = \context_module::instance(get_coursemodule_from_instance("quiz", $quiz->id, $this->course->id)->id);