Fix unit tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-07-06 14:27:18 +02:00
parent 9db8b0adf9
commit a0f5aebb89
No known key found for this signature in database
GPG Key ID: C2384F28E6F59A23

View File

@ -1486,7 +1486,8 @@ class UsersControllerTest extends TestCase {
$targetUser $targetUser
->expects($this->once()) ->expects($this->once())
->method('setDisplayName') ->method('setDisplayName')
->with('NewDisplayName'); ->with('NewDisplayName')
->willReturn(true);
$targetUser $targetUser
->expects($this->any()) ->expects($this->any())
->method('getUID') ->method('getUID')