aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2025-02-13 10:24:05 +0100
committerGitHub <noreply@github.com>2025-02-13 10:24:05 +0100
commitee48cafd200233203a1444dba797ef3eb89a35ca (patch)
tree1f37b64545f4ab80ffb14c442753539777e9cd98 /tests/lib
parent6e1d9a26209ec5524fbc2fb9c7cbb53315e64d72 (diff)
parent355fef6ff92b3ce1206bbbed17947e588ff89436 (diff)
downloadnextcloud-server-ee48cafd200233203a1444dba797ef3eb89a35ca.tar.gz
nextcloud-server-ee48cafd200233203a1444dba797ef3eb89a35ca.zip
Merge pull request #50689 from nextcloud/fix/migrate-dav-to-eventschore/mail-bisect-ee48cafd200233203a1444dba797ef3eb89a35ca
fix(dav): Migrate from hooks to user events
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/User/UserTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index e79aaadd593..44d28481ed5 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -929,6 +929,12 @@ class UserTest extends TestCase {
$this->equalTo('enabled'),
'true'
);
+ /* dav event listener gets the manager list from config */
+ $config->expects(self::any())
+ ->method('getUserValue')
+ ->willReturnCallback(
+ fn ($user, $app, $key, $default) => ($key === 'enabled' ? 'false' : $default)
+ );
$user = new User('foo', $backend, $this->dispatcher, null, $config);
$user->setEnabled(true);