return utc from clock
This commit is contained in:
parent
2fe41a5fe7
commit
13da7c311a
5 changed files with 26 additions and 9 deletions
|
|
@ -72,7 +72,7 @@ class AuthMiddlewareTest extends TestCase
|
|||
|
||||
private function makeHandler(): RequestHandlerInterface
|
||||
{
|
||||
return new class() implements RequestHandlerInterface {
|
||||
return new class implements RequestHandlerInterface {
|
||||
public ?ServerRequestInterface $capturedRequest = null;
|
||||
|
||||
public function handle(
|
||||
|
|
@ -113,8 +113,8 @@ class AuthMiddlewareTest extends TestCase
|
|||
$this->sessionRepo->create(new CreateSessionDto(
|
||||
token: 'expired-token',
|
||||
userId: $this->user->getId(),
|
||||
createdAt: new DateTimeImmutable('2024-12-01'),
|
||||
expiresAt: new DateTimeImmutable('2024-12-08'),
|
||||
createdAt: new DateTimeImmutable('2024-12-01T00:00:00+00:00'),
|
||||
expiresAt: new DateTimeImmutable('2024-12-08T00:00:00+00:00'),
|
||||
));
|
||||
|
||||
$response = $this->middleware->process(
|
||||
|
|
@ -130,8 +130,8 @@ class AuthMiddlewareTest extends TestCase
|
|||
$this->sessionRepo->create(new CreateSessionDto(
|
||||
token: 'valid-token',
|
||||
userId: $this->user->getId(),
|
||||
createdAt: new DateTimeImmutable('2025-01-01'),
|
||||
expiresAt: new DateTimeImmutable('2025-01-08'),
|
||||
createdAt: new DateTimeImmutable('2025-01-01T00:00:00+00:00'),
|
||||
expiresAt: new DateTimeImmutable('2025-01-08T00:00:00+00:00'),
|
||||
));
|
||||
$handler = $this->makeHandler();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue