From 6e628c2097c039e8d7c2c47bcc29eb4b862a6788 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 6 Jul 2022 14:27:18 +0200 Subject: [PATCH] Fix unit tests Signed-off-by: Joas Schilling --- apps/provisioning_api/tests/Controller/UsersControllerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- 2.39.5