diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-01-23 07:40:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 07:40:50 +0100 |
commit | 20190534ee70cba9644552fb2fb5833e17d16832 (patch) | |
tree | e981d704d1af2bc1e71c186734f3c2bcb3d45cbd | |
parent | f99642b0bc2b3cc020c629c1ec06425acaf5ba4b (diff) | |
parent | 1c099c7f17126a8dacf55de690a8ee516f385d11 (diff) | |
download | nextcloud-server-20190534ee70cba9644552fb2fb5833e17d16832.tar.gz nextcloud-server-20190534ee70cba9644552fb2fb5833e17d16832.zip |
Merge pull request #36269 from nextcloud/bugfix/noid/fix-broken-unit-test
Fix broken user:setting command unit test
-rw-r--r-- | tests/Core/Command/User/SettingTest.php | 5 |
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(); |