Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 54... Línea 54...
54
    }
54
    }
Línea 55... Línea 55...
55
 
55
 
56
    /**
56
    /**
57
     * Test the mnet access control created event.
57
     * Test the mnet access control created event.
58
     */
58
     */
59
    public function test_mnet_access_control_created() {
59
    public function test_mnet_access_control_created(): void {
60
        // Trigger and capture the event.
60
        // Trigger and capture the event.
61
        $sink = $this->redirectEvents();
61
        $sink = $this->redirectEvents();
62
        mnet_update_sso_access_control('username', $this->mnethost->id, 'enabled');
62
        mnet_update_sso_access_control('username', $this->mnethost->id, 'enabled');
63
        $events = $sink->get_events();
63
        $events = $sink->get_events();
Línea 72... Línea 72...
72
    }
72
    }
Línea 73... Línea 73...
73
 
73
 
74
    /**
74
    /**
75
     * Test the mnet access control updated event.
75
     * Test the mnet access control updated event.
76
     */
76
     */
77
    public function test_mnet_access_control_updated() {
77
    public function test_mnet_access_control_updated(): void {
Línea 78... Línea 78...
78
        global $DB;
78
        global $DB;
79
 
79
 
80
        // Create a mnet access control.
80
        // Create a mnet access control.