diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-09-16 19:56:42 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-09-19 18:25:16 +0000 |
commit | d864ea3caa70f7e046665db82eb0932491c8d2c1 (patch) | |
tree | a24611345973791bf17c08f7608d42ca20b28b7e | |
parent | 3efc80d097b1e29baa547764a4a38fa9000db637 (diff) | |
download | nextcloud-server-d864ea3caa70f7e046665db82eb0932491c8d2c1.tar.gz nextcloud-server-d864ea3caa70f7e046665db82eb0932491c8d2c1.zip |
Fix test failure introduced in https://github.com/nextcloud/server/pull/33819
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb)
-rw-r--r-- | apps/provisioning_api/tests/Controller/UsersControllerTest.php | 6 |
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', '', '', []); } |