fix tests (wip)

This commit is contained in:
Julien Fastré 2021-12-08 11:05:41 +01:00
parent 79fbdcdee4
commit 3f1bed0b1c
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ final class TokenManagerTest extends KernelTestCase
$this->assertFalse($tokenManager->verify($hash . '5', $token, $user, $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token . '25', $user, $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token, $user->setUsernameCanonical('test2'), $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token, $user, $timestamp + 1));
$this->assertFalse($tokenManager->verify($hash, $token, $user, (string) ($timestamp + 1)));
}
public function testVerifyExpiredFails()

View File

@ -475,7 +475,7 @@ class AccompanyingPeriod implements
$participation = $this->getOpenParticipationContainsPerson($person);
if ($participation instanceof AccompanyingPeriodParticipation) {
$participation->setEndDate(new DateTimeImmutable('now'));
$participation->setEndDate(new DateTime('now'));
}
return $participation;