diff --git a/tests/codeception/api/unit/models/ChangePasswordFormTest.php b/tests/codeception/api/unit/models/ChangePasswordFormTest.php index 47ac01f..e957f94 100644 --- a/tests/codeception/api/unit/models/ChangePasswordFormTest.php +++ b/tests/codeception/api/unit/models/ChangePasswordFormTest.php @@ -60,7 +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()); + expect('password change time updated', $account->password_changed_at)->greaterOrEquals(time() - 2); }); /** @var Account $account */ @@ -73,7 +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()); + expect('password change time updated', $account->password_changed_at)->greaterOrEquals(time() - 2); }); } diff --git a/tests/codeception/common/fixtures/data/accounts.php b/tests/codeception/common/fixtures/data/accounts.php index a63acd9..52bd45e 100644 --- a/tests/codeception/common/fixtures/data/accounts.php +++ b/tests/codeception/common/fixtures/data/accounts.php @@ -47,7 +47,6 @@ return [ 'password_hash' => '$2y$13$2rYkap5T6jG8z/mMK8a3Ou6aZxJcmAaTha6FEuujvHEmybSHRzW5e', # password_0 'password_hash_strategy' => \common\models\Account::PASS_HASH_STRATEGY_YII2, 'password_reset_token' => null, - 'auth_key' => '45DsaEQ7U8lU9umIyCWk5iCnpdPvZ8Up', 'status' => \common\models\Account::STATUS_REGISTERED, 'created_at' => 1457890086, 'updated_at' => 1457890086,