Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 42... Línea 42...
42
        $xmlfile = new qformat_blackboard_six_file();
42
        $xmlfile = new qformat_blackboard_six_file();
43
        $xmlfile->filetype = 1;
43
        $xmlfile->filetype = 1;
44
        $xmlfile->text = file_get_contents(__DIR__ . '/fixtures/sample_blackboard_qti.dat');
44
        $xmlfile->text = file_get_contents(__DIR__ . '/fixtures/sample_blackboard_qti.dat');
45
        return array(0 => $xmlfile);
45
        return array(0 => $xmlfile);
46
    }
46
    }
47
    public function test_import_match() {
47
    public function test_import_match(): void {
48
        $xml = $this->make_test_xml();
48
        $xml = $this->make_test_xml();
Línea 49... Línea 49...
49
 
49
 
50
        $importer = new qformat_blackboard_six();
50
        $importer = new qformat_blackboard_six();
51
        $questions = $importer->readquestions($xml);
51
        $questions = $importer->readquestions($xml);
Línea 89... Línea 89...
89
        }
89
        }
Línea 90... Línea 90...
90
 
90
 
91
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
91
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 92... Línea 92...
92
    }
92
    }
93
 
93
 
Línea 94... Línea 94...
94
    public function test_import_multichoice_single() {
94
    public function test_import_multichoice_single(): void {
95
        $xml = $this->make_test_xml();
95
        $xml = $this->make_test_xml();
96
 
96
 
Línea 147... Línea 147...
147
            );
147
            );
Línea 148... Línea 148...
148
 
148
 
149
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
149
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 150... Línea 150...
150
    }
150
    }
Línea 151... Línea 151...
151
 
151
 
Línea 152... Línea 152...
152
    public function test_import_multichoice_multi() {
152
    public function test_import_multichoice_multi(): void {
153
 
153
 
Línea 223... Línea 223...
223
            );
223
            );
Línea 224... Línea 224...
224
 
224
 
225
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
225
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 226... Línea 226...
226
    }
226
    }
Línea 227... Línea 227...
227
 
227
 
Línea 228... Línea 228...
228
    public function test_import_truefalse() {
228
    public function test_import_truefalse(): void {
229
 
229
 
Línea 253... Línea 253...
253
            );
253
            );
Línea 254... Línea 254...
254
 
254
 
255
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
255
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 256... Línea 256...
256
    }
256
    }
Línea 257... Línea 257...
257
 
257
 
Línea 258... Línea 258...
258
    public function test_import_fill_in_the_blank() {
258
    public function test_import_fill_in_the_blank(): void {
259
 
259
 
Línea 287... Línea 287...
287
            );
287
            );
Línea 288... Línea 288...
288
 
288
 
289
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
289
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 290... Línea 290...
290
    }
290
    }
Línea 291... Línea 291...
291
 
291
 
Línea 292... Línea 292...
292
    public function test_import_essay() {
292
    public function test_import_essay(): void {
293
 
293
 
Línea 315... Línea 315...
315
            );
315
            );
Línea 316... Línea 316...
316
 
316
 
317
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
317
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 318... Línea 318...
318
    }
318
    }
Línea 319... Línea 319...
319
 
319
 
Línea 320... Línea 320...
320
    public function test_import_category() {
320
    public function test_import_category(): void {
321
 
321