Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 57... Línea 57...
57
    }
57
    }
Línea 58... Línea 58...
58
 
58
 
59
    /**
59
    /**
60
     * Test the way in which notifications are added to the session in different stages of the page load.
60
     * Test the way in which notifications are added to the session in different stages of the page load.
61
     */
61
     */
62
    public function test_add_during_output_stages() {
62
    public function test_add_during_output_stages(): void {
Línea 63... Línea 63...
63
        global $PAGE, $SESSION;
63
        global $PAGE, $SESSION;
64
 
64
 
Línea 89... Línea 89...
89
    }
89
    }
Línea 90... Línea 90...
90
 
90
 
91
    /**
91
    /**
92
     * Test fetching of notifications from the session.
92
     * Test fetching of notifications from the session.
93
     */
93
     */
94
    public function test_fetch() {
94
    public function test_fetch(): void {
95
        // Initially there won't be any notifications.
95
        // Initially there won't be any notifications.
Línea 96... Línea 96...
96
        $this->assertCount(0, \core\notification::fetch());
96
        $this->assertCount(0, \core\notification::fetch());
97
 
97
 
Línea 102... Línea 102...
102
    }
102
    }
Línea 103... Línea 103...
103
 
103
 
104
    /**
104
    /**
105
     * Test that session notifications are persisted across session clears.
105
     * Test that session notifications are persisted across session clears.
106
     */
106
     */
107
    public function test_session_persistance() {
107
    public function test_session_persistance(): void {
Línea 108... Línea 108...
108
        global $PAGE, $SESSION;
108
        global $PAGE, $SESSION;
109
 
109