Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-16 22:56:42 +0300
committerChristopher Ng <chrng8@gmail.com>2022-09-16 22:56:42 +0300
commit4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb (patch)
treefbbc11720a12150d92504197370f537069de94ec /apps
parentf922b2fd7072ace8211467e3627f2a44a5c09fe3 (diff)
Fix test failure introduced in https://github.com/nextcloud/server/pull/33819
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
index 4449302fedd..09a7eeb1a11 100644
--- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
@@ -267,6 +267,12 @@ class UsersControllerTest extends TestCase {
->method('isAdmin')
->with('adminUser')
->willReturn(true);
+ $l10n = $this->createMock(IL10N::class);
+ $this->l10nFactory
+ ->expects($this->once())
+ ->method('get')
+ ->with('provisioning_api')
+ ->willReturn($l10n);
$this->api->addUser('AlreadyExistingUser', 'password', '', '', []);
}