Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 169... Línea 169...
169
    /**
169
    /**
170
     * Test bulk move of questions.
170
     * Test bulk move of questions.
171
     *
171
     *
172
     * @covers ::bulk_move_questions
172
     * @covers ::bulk_move_questions
173
     */
173
     */
174
    public function test_bulk_move_questions() {
174
    public function test_bulk_move_questions(): void {
175
        global $DB;
175
        global $DB;
176
        $this->helper_setup();
176
        $this->helper_setup();
Línea 177... Línea 177...
177
 
177
 
178
        // Get the processed question ids.
178
        // Get the processed question ids.
Línea 207... Línea 207...
207
    /**
207
    /**
208
     * Test the question displaydata.
208
     * Test the question displaydata.
209
     *
209
     *
210
     * @covers ::get_displaydata
210
     * @covers ::get_displaydata
211
     */
211
     */
212
    public function test_get_displaydata() {
212
    public function test_get_displaydata(): void {
213
        $this->helper_setup();
213
        $this->helper_setup();
214
        $coursecontext = \context_course::instance($this->course->id);
214
        $coursecontext = \context_course::instance($this->course->id);
215
        $contexts = new question_edit_contexts($coursecontext);
215
        $contexts = new question_edit_contexts($coursecontext);
216
        $addcontexts = $contexts->having_cap('moodle/question:add');
216
        $addcontexts = $contexts->having_cap('moodle/question:add');
217
        $url = new \moodle_url('/question/bank/bulkmove/move.php');
217
        $url = new \moodle_url('/question/bank/bulkmove/move.php');