Fix broken user:setting command unit test

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-01-20 11:03:19 +01:00
parent cfc93d8b0a
commit 1c099c7f17
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

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();