mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix tests (wip)
This commit is contained in:
parent
79fbdcdee4
commit
3f1bed0b1c
@ -88,7 +88,7 @@ final class TokenManagerTest extends KernelTestCase
|
|||||||
$this->assertFalse($tokenManager->verify($hash . '5', $token, $user, $timestamp));
|
$this->assertFalse($tokenManager->verify($hash . '5', $token, $user, $timestamp));
|
||||||
$this->assertFalse($tokenManager->verify($hash, $token . '25', $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->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()
|
public function testVerifyExpiredFails()
|
||||||
|
@ -475,7 +475,7 @@ class AccompanyingPeriod implements
|
|||||||
$participation = $this->getOpenParticipationContainsPerson($person);
|
$participation = $this->getOpenParticipationContainsPerson($person);
|
||||||
|
|
||||||
if ($participation instanceof AccompanyingPeriodParticipation) {
|
if ($participation instanceof AccompanyingPeriodParticipation) {
|
||||||
$participation->setEndDate(new DateTimeImmutable('now'));
|
$participation->setEndDate(new DateTime('now'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $participation;
|
return $participation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user