Skip to content

Commit 7dc2bf9

Browse files
committed
fix(tests): Fix getLastLogin expectation in UsersControllerTest
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 2c00b64 commit 7dc2bf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/provisioning_api/tests/Controller/UsersControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ public function testGetUserDataAsAdmin(): void {
11441144
->method('getHome')
11451145
->willReturn('/var/www/newtcloud/data/UID');
11461146
$targetUser
1147-
->expects($this->once())
1147+
->expects($this->exactly(2))
11481148
->method('getLastLogin')
11491149
->willReturn(1521191471);
11501150
$targetUser
@@ -1276,7 +1276,7 @@ public function testGetUserDataAsSubAdminAndUserIsAccessible(): void {
12761276
->expects($this->never())
12771277
->method('getHome');
12781278
$targetUser
1279-
->expects($this->once())
1279+
->expects($this->exactly(2))
12801280
->method('getLastLogin')
12811281
->willReturn(1521191471);
12821282
$targetUser
@@ -1464,7 +1464,7 @@ public function testGetUserDataAsSubAdminSelfLookup(): void {
14641464
->expects($this->never())
14651465
->method('getHome');
14661466
$targetUser
1467-
->expects($this->once())
1467+
->expects($this->exactly(2))
14681468
->method('getLastLogin')
14691469
->willReturn(1521191471);
14701470
$targetUser

0 commit comments

Comments
 (0)