From d864ea3caa70f7e046665db82eb0932491c8d2c1 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Fri, 16 Sep 2022 19:56:42 +0000 Subject: [PATCH] Fix test failure introduced in https://github.com/nextcloud/server/pull/33819 Signed-off-by: Christopher Ng (cherry picked from commit 4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb) --- .../tests/Controller/UsersControllerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) 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', '', '', []); } -- 2.39.5