Skip to content

Commit

Permalink
fix(tests): Fix getLastLogin expectation in UsersControllerTest
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jan 7, 2025
1 parent 0be1867 commit de8c450
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ public function testGetUserDataAsAdmin(): void {
->method('getHome')
->willReturn('/var/www/newtcloud/data/UID');
$targetUser
->expects($this->once())
->expects($this->exactly(2))
->method('getLastLogin')
->willReturn(1521191471);
$targetUser
Expand Down Expand Up @@ -1276,7 +1276,7 @@ public function testGetUserDataAsSubAdminAndUserIsAccessible(): void {
->expects($this->never())
->method('getHome');
$targetUser
->expects($this->once())
->expects($this->exactly(2))
->method('getLastLogin')
->willReturn(1521191471);
$targetUser
Expand Down Expand Up @@ -1464,7 +1464,7 @@ public function testGetUserDataAsSubAdminSelfLookup(): void {
->expects($this->never())
->method('getHome');
$targetUser
->expects($this->once())
->expects($this->exactly(2))
->method('getLastLogin')
->willReturn(1521191471);
$targetUser
Expand Down

0 comments on commit de8c450

Please sign in to comment.