diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php index f75ec9192c321..52dd82069f945 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -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 @@ -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 @@ -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