Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 30... Línea 30...
30
 */
30
 */
31
class manager_observer_test extends data_privacy_testcase {
31
class manager_observer_test extends data_privacy_testcase {
32
    /**
32
    /**
33
     * Ensure that when users are configured as DPO, they are sent an message upon failure.
33
     * Ensure that when users are configured as DPO, they are sent an message upon failure.
34
     */
34
     */
35
    public function test_handle_component_failure() {
35
    public function test_handle_component_failure(): void {
36
        $this->resetAfterTest();
36
        $this->resetAfterTest();
Línea 37... Línea 37...
37
 
37
 
38
        // Create another user who is not a DPO.
38
        // Create another user who is not a DPO.
Línea 63... Línea 63...
63
    }
63
    }
Línea 64... Línea 64...
64
 
64
 
65
    /**
65
    /**
66
     * Ensure that when no user is configured as DPO, the message is sent to admin instead.
66
     * Ensure that when no user is configured as DPO, the message is sent to admin instead.
67
     */
67
     */
68
    public function test_handle_component_failure_no_dpo() {
68
    public function test_handle_component_failure_no_dpo(): void {
Línea 69... Línea 69...
69
        $this->resetAfterTest();
69
        $this->resetAfterTest();
70
 
70