Browse Source
Merge pull request #36269 from nextcloud/bugfix/noid/fix-broken-unit-test
Fix broken user:setting command unit test
tags/v26.0.0beta1
Joas Schilling
1 year ago
No account linked to committer's email address
|
|
@@ -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(); |