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', '', '', []); }