Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 43... Línea 43...
43
        $xmlfile->filetype = 2;
43
        $xmlfile->filetype = 2;
44
        $xmlfile->text = file_get_contents(__DIR__ . '/fixtures/sample_blackboard_pool.dat');
44
        $xmlfile->text = file_get_contents(__DIR__ . '/fixtures/sample_blackboard_pool.dat');
45
        return array(0 => $xmlfile);
45
        return array(0 => $xmlfile);
46
    }
46
    }
Línea 47... Línea 47...
47
 
47
 
Línea 48... Línea 48...
48
    public function test_import_match() {
48
    public function test_import_match(): void {
Línea 49... Línea 49...
49
 
49
 
50
        $xml = $this->make_test_xml();
50
        $xml = $this->make_test_xml();
Línea 92... Línea 92...
92
            $expectedq->subanswers = array('mammal', 'insect', 'amphibian', 'amphibian');
92
            $expectedq->subanswers = array('mammal', 'insect', 'amphibian', 'amphibian');
93
        }
93
        }
94
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
94
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
95
    }
95
    }
Línea 96... Línea 96...
96
 
96
 
Línea 97... Línea 97...
97
    public function test_import_multichoice_single() {
97
    public function test_import_multichoice_single(): void {
Línea 98... Línea 98...
98
 
98
 
99
        $xml = $this->make_test_xml();
99
        $xml = $this->make_test_xml();
Línea 151... Línea 151...
151
            );
151
            );
Línea 152... Línea 152...
152
 
152
 
153
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
153
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 154... Línea 154...
154
    }
154
    }
Línea 155... Línea 155...
155
 
155
 
Línea 156... Línea 156...
156
    public function test_import_multichoice_multi() {
156
    public function test_import_multichoice_multi(): void {
157
 
157
 
Línea 224... Línea 224...
224
            );
224
            );
Línea 225... Línea 225...
225
 
225
 
226
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
226
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
Línea 227... Línea 227...
227
    }
227
    }
Línea 228... Línea 228...
228
 
228
 
Línea 229... Línea 229...
229
    public function test_import_truefalse() {
229
    public function test_import_truefalse(): void {
230
 
230
 
Línea 253... Línea 253...
253
                'format' => FORMAT_HTML,
253
                'format' => FORMAT_HTML,
254
            );
254
            );
255
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
255
        $this->assert(new question_check_specified_fields_expectation($expectedq), $q);
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 {
Línea 259... Línea 259...
259
 
259
 
260
        $xml = $this->make_test_xml();
260
        $xml = $this->make_test_xml();
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