Skip to content

Commit 2a4781e

Browse files
enriquepablomickenordin
authored andcommitted
fix: fix user session tests
Signed-off-by: Enrique Pérez Arnaud <enrique@cazalla.net>
1 parent 3a74afc commit 2a4781e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/lib/User/SessionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ public function testPasswordlessLoginNoLastCheckUpdate(): void {
341341
$session->expects($this->once())
342342
->method('regenerateId');
343343
$token = new PublicKeyToken();
344+
$token->setId(1);
344345
$token->setLoginName('foo');
345346
$token->setLastCheck(0); // Never
346347
$token->setUid('foo');
@@ -384,6 +385,7 @@ public function testLoginLastCheckUpdate(): void {
384385
$session->expects($this->once())
385386
->method('regenerateId');
386387
$token = new PublicKeyToken();
388+
$token->setId(1);
387389
$token->setLoginName('foo');
388390
$token->setLastCheck(0); // Never
389391
$token->setUid('foo');

0 commit comments

Comments
 (0)