Merge pull request #36269 from nextcloud/bugfix/noid/fix-broken-unit-test

Fix broken user:setting command unit test
This commit is contained in:
Joas Schilling 2023-01-23 07:40:50 +01:00 committed by GitHub
commit 20190534ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,8 +212,11 @@ class SettingTest extends TestCase {
if ($user !== false) {
$this->userManager->expects($this->once())
->method('userExists')
->method('get')
->willReturn($user);
} else {
$this->userManager->expects($this->never())
->method('get');
}
$command = $this->getCommand();