Skip to content
Merged
Prev Previous commit
Next Next commit
fix(tests): Fix getLastLogin expectation in UsersControllerTest
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jan 7, 2025
commit de8c450e5f872dd50a61082518437020795c254e
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
Loading