Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 49... Línea 49...
49
    }
49
    }
Línea 50... Línea 50...
50
 
50
 
51
    /**
51
    /**
52
     * Test user_update_password method.
52
     * Test user_update_password method.
53
     */
53
     */
54
    public function test_user_update_password() {
54
    public function test_user_update_password(): void {
55
        $user = $this->getDataGenerator()->create_user();
55
        $user = $this->getDataGenerator()->create_user();
56
        $expectedtime = time();
56
        $expectedtime = time();
Línea 57... Línea 57...
57
        $passwordisupdated = $this->authplugin->user_update_password($user, 'MyNewPassword*');
57
        $passwordisupdated = $this->authplugin->user_update_password($user, 'MyNewPassword*');
Línea 64... Línea 64...
64
    }
64
    }
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * Test test_password_expire method.
67
     * Test test_password_expire method.
68
     */
68
     */
69
    public function test_password_expire() {
69
    public function test_password_expire(): void {
70
        $userrecord = array();
70
        $userrecord = array();
71
        $expirationtime = 31 * DAYSECS;
71
        $expirationtime = 31 * DAYSECS;
72
        $userrecord['timecreated'] = time() - $expirationtime;
72
        $userrecord['timecreated'] = time() - $expirationtime;
73
        $user1 = $this->getDataGenerator()->create_user($userrecord);
73
        $user1 = $this->getDataGenerator()->create_user($userrecord);