mirror of
https://github.com/elyby/accounts.git
synced 2026-12-02 04:03:14 +05:30
Merge branch 'profile'
This commit is contained in:
commit
d8a2cc21b8
6 files changed
+31
-13
No files matched your search
@@ -60,6 +60,7 @@ class ChangePasswordFormTest extends DbTestCase {
|
||||
$this->specify('successfully change password with modern hash strategy', function() use ($model, $account) {
|
||||
expect('form should return true', $model->changePassword())->true();
|
||||
expect('new password should be successfully stored into account', $account->validatePassword('my-new-password'))->true();
|
||||
expect('password change time updated', $account->password_changed_at)->greaterOrEquals(time());
|
||||
});
|
||||
|
||||
/** @var Account $account */
|
||||
@@ -72,6 +73,7 @@ class ChangePasswordFormTest extends DbTestCase {
|
||||
$this->specify('successfully change password with legacy hash strategy', function() use ($model, $account) {
|
||||
expect('form should return true', $model->changePassword())->true();
|
||||
expect('new password should be successfully stored into account', $account->validatePassword('my-new-password'))->true();
|
||||
expect('password change time updated', $account->password_changed_at)->greaterOrEquals(time());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user