Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 45... Línea 45...
45
    }
45
    }
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * Test handler creation.
48
     * Test handler creation.
49
     */
49
     */
50
    public function test_handler_create() {
50
    public function test_handler_create(): void {
51
        // Get an existent handler.
51
        // Get an existent handler.
52
        $handler = handler::create('fake_component');
52
        $handler = handler::create('fake_component');
Línea 53... Línea 53...
53
        $this->assertEquals(get_class($handler), 'fake_component\\xapi\\handler');
53
        $this->assertEquals(get_class($handler), 'fake_component\\xapi\\handler');
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Test xAPI support.
61
     * Test xAPI support.
62
     */
62
     */
63
    public function test_supports_xapi() {
63
    public function test_supports_xapi(): void {
64
        // Get an existent handler.
64
        // Get an existent handler.
65
        $result = handler::supports_xapi('fake_component');
65
        $result = handler::supports_xapi('fake_component');
Línea 66... Línea 66...
66
        $this->assertTrue($result);
66
        $this->assertTrue($result);
Línea 71... Línea 71...
71
    }
71
    }
Línea 72... Línea 72...
72
 
72
 
73
    /**
73
    /**
74
     * Test support group.
74
     * Test support group.
75
     */
75
     */
76
    public function test_support_group_actor() {
76
    public function test_support_group_actor(): void {
77
        global $CFG;
77
        global $CFG;
78
        // Get an existent handler.
78
        // Get an existent handler.
79
        $this->resetAfterTest();
79
        $this->resetAfterTest();
80
        $handler = handler::create('fake_component');
80
        $handler = handler::create('fake_component');
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test for process_statements method.
87
     * Test for process_statements method.
88
     */
88
     */
Línea 89... Línea 89...
89
    public function test_process_statements() {
89
    public function test_process_statements(): void {
90
 
90
 
Línea 91... Línea 91...
91
        $this->resetAfterTest();
91
        $this->resetAfterTest();