Skip to content

Commit

Permalink
tests(unit): fix missing login timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jan 23, 2025
1 parent 0ded4d8 commit 0e1a8af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/Controller/SettingsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ public function testAdminImpersonate($query, $uid) {
$user->expects($this->any())
->method('getUID')
->willReturn($uid);
$user->expects($this->any())
->method('getLastLogin')
->willReturn(1737662989);

$this->userSession
->method('getUser')
Expand Down Expand Up @@ -182,6 +185,9 @@ public function testSubAdminImpersonate($query, $uid) {
$user->expects($this->any())
->method('getUID')
->willReturn($uid);
$user->expects($this->any())
->method('getLastLogin')
->willReturn(1737662989);

$this->userSession
->method('getUser')
Expand Down

0 comments on commit 0e1a8af

Please sign in to comment.