Skip to content

Commit

Permalink
Fix test failure introduced in nextcloud/server#33819
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
(cherry picked from commit 4de19e9f851e2d1948d2af4dfcd70a5b22ae53cb)
  • Loading branch information
Pytal authored and tony committed May 3, 2023
1 parent a4ca440 commit b1ee4b0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', '', '', []);
}
Expand Down

0 comments on commit b1ee4b0

Please sign in to comment.