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
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-16 22:56:42 +0300
committerChristopher Ng <chrng8@gmail.com>2022-09-19 21:25:16 +0300
commitd864ea3caa70f7e046665db82eb0932491c8d2c1 (patch)
treea24611345973791bf17c08f7608d42ca20b28b7e
parent3efc80d097b1e29baa547764a4a38fa9000db637 (diff)
Fix test failure introduced in https://github.com/nextcloud/server/pull/33819backport/33819/stable24
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb)
-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', '', '', []);
}