summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-07-06 14:27:18 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-06 20:57:33 +0000
commita06f0274fe0ae93b04f60166b040744a0646488c (patch)
treedd8f0d84c825ba02e0217abfac527b4126632e75
parentbe7a9361dbb0902e4bc811766f6118b2f6f11141 (diff)
downloadnextcloud-server-a06f0274fe0ae93b04f60166b040744a0646488c.tar.gz
nextcloud-server-a06f0274fe0ae93b04f60166b040744a0646488c.zip
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php3
1 files changed, 2 insertions, 1 deletions
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')