Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 29... Línea 29...
29
    public function setUp(): void {
29
    public function setUp(): void {
30
        parent::setUp();
30
        parent::setUp();
31
        $this->resetAfterTest();
31
        $this->resetAfterTest();
32
    }
32
    }
Línea 33... Línea 33...
33
 
33
 
34
    public function test_no_data() {
34
    public function test_no_data(): void {
Línea 35... Línea 35...
35
        global $DB;
35
        global $DB;
36
 
36
 
37
        $recordset = $DB->get_recordset('assign');
37
        $recordset = $DB->get_recordset('assign');
Línea 45... Línea 45...
45
        }
45
        }
46
        $this->assertEquals(0, $count);
46
        $this->assertEquals(0, $count);
47
        $walker->close();
47
        $walker->close();
48
    }
48
    }
Línea 49... Línea 49...
49
 
49
 
50
    public function test_simple_callback() {
50
    public function test_simple_callback(): void {
Línea 51... Línea 51...
51
        global $DB;
51
        global $DB;
52
 
52
 
53
        /** @var \mod_assign_generator $generator */
53
        /** @var \mod_assign_generator $generator */
Línea 70... Línea 70...
70
        $this->assertEquals(10, $count);
70
        $this->assertEquals(10, $count);
71
        // No exception if we double-close.
71
        // No exception if we double-close.
72
        $walker->close();
72
        $walker->close();
73
    }
73
    }
Línea 74... Línea 74...
74
 
74
 
75
    public function test_extra_params_callback() {
75
    public function test_extra_params_callback(): void {
Línea 76... Línea 76...
76
        global $DB;
76
        global $DB;
77
 
77
 
78
        /** @var \mod_assign_generator $generator */
78
        /** @var \mod_assign_generator $generator */