]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix broken user:setting command unit test 36269/head
authorJoas Schilling <coding@schilljs.com>
Fri, 20 Jan 2023 10:03:19 +0000 (11:03 +0100)
committerJoas Schilling <coding@schilljs.com>
Mon, 23 Jan 2023 06:01:22 +0000 (07:01 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/Core/Command/User/SettingTest.php

index 768a79a746ebaf2926efe485db3f03994ad28886..964a707bf38663bd608c7f6544247d37f95c44b7 100644 (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();