]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix test failure introduced in https://github.com/nextcloud/server/pull/33819 33502/head
authorChristopher Ng <chrng8@gmail.com>
Fri, 16 Sep 2022 19:56:42 +0000 (19:56 +0000)
committerChristopher Ng <chrng8@gmail.com>
Fri, 16 Sep 2022 19:56:42 +0000 (19:56 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/provisioning_api/tests/Controller/UsersControllerTest.php

index 4449302fedda41ad6b5413e9ba78c22edc4fd379..09a7eeb1a115c4626df5b65c7b671eb18287813d 100644 (file)
@@ -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', '', '', []);
        }