Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 83... Línea 83...
83
     *
83
     *
84
     * @dataProvider auth_ldap_provider
84
     * @dataProvider auth_ldap_provider
85
     * @param int $pagesize Value to be configured in settings controlling page size.
85
     * @param int $pagesize Value to be configured in settings controlling page size.
86
     * @param int $subcontext Value to be configured in settings controlling searching in subcontexts.
86
     * @param int $subcontext Value to be configured in settings controlling searching in subcontexts.
87
     */
87
     */
88
    public function test_auth_ldap(int $pagesize, int $subcontext) {
88
    public function test_auth_ldap(int $pagesize, int $subcontext): void {
89
        global $DB;
89
        global $DB;
Línea 90... Línea 90...
90
 
90
 
91
        if (!extension_loaded('ldap')) {
91
        if (!extension_loaded('ldap')) {
92
            $this->markTestSkipped('LDAP extension is not loaded.');
92
            $this->markTestSkipped('LDAP extension is not loaded.');
Línea 395... Línea 395...
395
    }
395
    }
Línea 396... Línea 396...
396
 
396
 
397
    /**
397
    /**
398
     * Test logging in via LDAP calls a user_loggedin event.
398
     * Test logging in via LDAP calls a user_loggedin event.
399
     */
399
     */
400
    public function test_ldap_user_loggedin_event() {
400
    public function test_ldap_user_loggedin_event(): void {
Línea 401... Línea 401...
401
        global $CFG, $DB, $USER;
401
        global $CFG, $DB, $USER;
Línea 402... Línea 402...
402
 
402
 
Línea 433... Línea 433...
433
    }
433
    }
Línea 434... Línea 434...
434
 
434
 
435
    /**
435
    /**
436
     * Test logging in via LDAP calls a user_loggedin event.
436
     * Test logging in via LDAP calls a user_loggedin event.
437
     */
437
     */
438
    public function test_ldap_user_signup() {
438
    public function test_ldap_user_signup(): void {
Línea 439... Línea 439...
439
        global $CFG, $DB;
439
        global $CFG, $DB;
440
 
440
 
441
        // User to create.
441
        // User to create.