From 1c099c7f17126a8dacf55de690a8ee516f385d11 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Jan 2023 11:03:19 +0100 Subject: [PATCH] Fix broken user:setting command unit test Signed-off-by: Joas Schilling --- tests/Core/Command/User/SettingTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();