summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 11:03:19 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-23 07:01:22 +0100
commit1c099c7f17126a8dacf55de690a8ee516f385d11 (patch)
treee7a0aa33df213d846a137c40de479db6bec718a6 /tests
parentcfc93d8b0a9a8091fcc59cc308fb8ab8a2648b6c (diff)
downloadnextcloud-server-1c099c7f17126a8dacf55de690a8ee516f385d11.tar.gz
nextcloud-server-1c099c7f17126a8dacf55de690a8ee516f385d11.zip
Fix broken user:setting command unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Command/User/SettingTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Core/Command/User/SettingTest.php b/tests/Core/Command/User/SettingTest.php
index 768a79a746e..964a707bf38 100644
--- a/tests/Core/Command/User/SettingTest.php
+++ b/tests/Core/Command/User/SettingTest.php
@@ -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();