Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 35... Línea 35...
35
    /**
35
    /**
36
     * Test that the history page shows all the versions of a question.
36
     * Test that the history page shows all the versions of a question.
37
     *
37
     *
38
     * @covers ::display
38
     * @covers ::display
39
     */
39
     */
40
    public function test_question_history_shows_all_versions() {
40
    public function test_question_history_shows_all_versions(): void {
41
        $this->resetAfterTest();
41
        $this->resetAfterTest();
42
        $this->setAdminUser();
42
        $this->setAdminUser();
43
        $generator = $this->getDataGenerator();
43
        $generator = $this->getDataGenerator();
44
        $questiongenerator = $this->getDataGenerator()->get_plugin_generator('core_question');
44
        $questiongenerator = $this->getDataGenerator()->get_plugin_generator('core_question');
Línea 87... Línea 87...
87
    /**
87
    /**
88
     * Test that the question bank header in the history page shows the latest question.
88
     * Test that the question bank header in the history page shows the latest question.
89
     *
89
     *
90
     * @covers ::display_question_bank_header
90
     * @covers ::display_question_bank_header
91
     */
91
     */
92
    public function test_display_question_bank_header() {
92
    public function test_display_question_bank_header(): void {
93
        $this->resetAfterTest();
93
        $this->resetAfterTest();
94
        $this->setAdminUser();
94
        $this->setAdminUser();
95
        $generator = $this->getDataGenerator();
95
        $generator = $this->getDataGenerator();
96
        $questiongenerator = $this->getDataGenerator()->get_plugin_generator('core_question');
96
        $questiongenerator = $this->getDataGenerator()->get_plugin_generator('core_question');