Skip to content

Commit e67f35d

Browse files
committed
[TASK] Remove milliseconds from timestamps
Refs #51
1 parent 4d1396b commit e67f35d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Classes/Validation/Validator/ChangePasswordValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected function evaluateOldPasswordCheck(ChangePassword $changePassword)
181181
if ($this->oldPasswordService->checkEqualsOldPassword($changePassword->getPassword1())) {
182182
$this->addError(
183183
$this->localizationService->translate('oldPasswordFailure'),
184-
1570880406065
184+
1570880406
185185
);
186186
}
187187
}
@@ -200,7 +200,7 @@ protected function evaluateRequireCurrentPassword(ChangePassword $changePassword
200200
$result = false;
201201
$this->addError(
202202
$this->localizationService->translate('currentPasswordEmpty'),
203-
1570880411334
203+
1570880411
204204
);
205205
}
206206

@@ -210,7 +210,7 @@ protected function evaluateRequireCurrentPassword(ChangePassword $changePassword
210210
$result = false;
211211
$this->addError(
212212
$this->localizationService->translate('currentPasswordFailure'),
213-
1570880417020
213+
1570880417
214214
);
215215
}
216216
return $result;

Tests/Unit/Validation/Validator/ChangePasswordValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function noCurrentPasswordGivenTest()
200200
$mockLocalizationService->expects(self::any())->method('translate')->willReturn('');
201201
$this->validator->_set('localizationService', $mockLocalizationService);
202202

203-
self::assertEquals(1570880411334, $this->validator->validate($changePassword)->getErrors()[0]->getCode());
203+
self::assertEquals(1570880411, $this->validator->validate($changePassword)->getErrors()[0]->getCode());
204204
}
205205

206206
/**
@@ -238,7 +238,7 @@ public function currentPasswordWrongTest()
238238
->willReturn(false);
239239
$this->validator->_set('oldPasswordService', $mockOldPasswordService);
240240

241-
self::assertEquals(1570880417020, $this->validator->validate($changePassword)->getErrors()[0]->getCode());
241+
self::assertEquals(1570880417, $this->validator->validate($changePassword)->getErrors()[0]->getCode());
242242
}
243243

244244
/**

0 commit comments

Comments
 (0)