@@ -117,15 +117,15 @@ public function testValidateUserPassOfAlreadyDAVAuthenticatedUser(): void {
117117 $ user = $ this ->getMockBuilder (IUser::class)
118118 ->disableOriginalConstructor ()
119119 ->getMock ();
120- $ user ->expects ($ this ->exactly (2 ))
120+ $ user ->expects ($ this ->exactly (1 ))
121121 ->method ('getUID ' )
122122 ->willReturn ('MyTestUser ' );
123123 $ this ->userSession
124124 ->expects ($ this ->once ())
125125 ->method ('isLoggedIn ' )
126126 ->willReturn (true );
127127 $ this ->userSession
128- ->expects ($ this ->exactly (2 ))
128+ ->expects ($ this ->exactly (1 ))
129129 ->method ('getUser ' )
130130 ->willReturn ($ user );
131131 $ this ->session
@@ -171,15 +171,15 @@ public function testValidateUserPassOfInvalidDAVAuthenticatedUserWithValidPasswo
171171 $ user = $ this ->getMockBuilder (IUser::class)
172172 ->disableOriginalConstructor ()
173173 ->getMock ();
174- $ user ->expects ($ this ->exactly (3 ))
174+ $ user ->expects ($ this ->exactly (2 ))
175175 ->method ('getUID ' )
176176 ->willReturn ('MyTestUser ' );
177177 $ this ->userSession
178178 ->expects ($ this ->once ())
179179 ->method ('isLoggedIn ' )
180180 ->willReturn (true );
181181 $ this ->userSession
182- ->expects ($ this ->exactly (3 ))
182+ ->expects ($ this ->exactly (2 ))
183183 ->method ('getUser ' )
184184 ->willReturn ($ user );
185185 $ this ->session
@@ -660,11 +660,11 @@ public function testAuthenticateValidCredentials(): void {
660660 $ user = $ this ->getMockBuilder (IUser::class)
661661 ->disableOriginalConstructor ()
662662 ->getMock ();
663- $ user ->expects ($ this ->exactly (3 ))
663+ $ user ->expects ($ this ->exactly (2 ))
664664 ->method ('getUID ' )
665665 ->willReturn ('MyTestUser ' );
666666 $ this ->userSession
667- ->expects ($ this ->exactly (4 ))
667+ ->expects ($ this ->exactly (3 ))
668668 ->method ('getUser ' )
669669 ->willReturn ($ user );
670670 $ response = $ this ->auth ->check ($ server ->httpRequest , $ server ->httpResponse );
0 commit comments