From 4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb 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 --- .../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 4449302fedda4..09a7eeb1a115c 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -267,6 +267,12 @@ public function testAddUserAlreadyExisting() { ->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', '', '', []); }