summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2022-09-16 16:04:18 -0700
committerGitHub <noreply@github.com>2022-09-16 16:04:18 -0700
commit914714f26a38c6ede9182c79c88e1890474802b6 (patch)
treefbbc11720a12150d92504197370f537069de94ec /apps/provisioning_api
parentb9c002df0a3ab80c1612206cfb1f724d90e0da3a (diff)
parent4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb (diff)
downloadnextcloud-server-914714f26a38c6ede9182c79c88e1890474802b6.tar.gz
nextcloud-server-914714f26a38c6ede9182c79c88e1890474802b6.zip
Merge pull request #33502 from nextcloud/enh/27869/locale
Remake locale saving with Vue
Diffstat (limited to 'apps/provisioning_api')
-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', '', '', []);
}