]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(UserTrait): Fix backend initialization fix/usertrait/backend-initialization 48610/head
authorprovokateurin <kate@provokateurin.de>
Tue, 8 Oct 2024 09:12:01 +0000 (11:12 +0200)
committerprovokateurin <kate@provokateurin.de>
Tue, 8 Oct 2024 09:12:01 +0000 (11:12 +0200)
Signed-off-by: provokateurin <kate@provokateurin.de>
tests/lib/Traits/UserTrait.php

index 3374b6b5fdde7cd2ddca66062430d4c00834ec6c..05fb0caa8ca7f8a68c1ea27aa034240ace99382c 100644 (file)
@@ -8,13 +8,16 @@
 namespace Test\Traits;
 
 use OC\User\User;
+use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IUser;
+use OCP\Server;
 
 class DummyUser extends User {
        private string $uid;
 
        public function __construct(string $uid) {
                $this->uid = $uid;
+               parent::__construct($uid, null, Server::get(IEventDispatcher::class));
        }
 
        public function getUID(): string {