Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 4de19e9f85)
This commit is contained in:
Christopher Ng 2022-09-16 19:56:42 +00:00
parent 3efc80d097
commit d864ea3caa

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