From: Joas Schilling Date: Wed, 6 Jul 2022 12:27:18 +0000 (+0200) Subject: Fix unit tests X-Git-Tag: v24.0.3rc1~10^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e628c2097c039e8d7c2c47bcc29eb4b862a6788;p=nextcloud-server.git Fix unit tests Signed-off-by: Joas Schilling --- diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php index 6162be54a04..4449302fedd 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -1486,7 +1486,8 @@ class UsersControllerTest extends TestCase { $targetUser ->expects($this->once()) ->method('setDisplayName') - ->with('NewDisplayName'); + ->with('NewDisplayName') + ->willReturn(true); $targetUser ->expects($this->any()) ->method('getUID')