aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-10-08 16:53:26 +0200
committerGitHub <noreply@github.com>2024-10-08 16:53:26 +0200
commit356f3ded52cf48a26295daef96c032d6d087a518 (patch)
tree277afc93b6d78cab92e48ba04b12508a5ea05727 /tests/lib
parentf8c987f02952b83b235c705cf5df7f7f8a37ea47 (diff)
parent902fb8f9fc963701f3ecfb190a7dacc8eba43e54 (diff)
downloadnextcloud-server-356f3ded52cf48a26295daef96c032d6d087a518.tar.gz
nextcloud-server-356f3ded52cf48a26295daef96c032d6d087a518.zip
Merge pull request #48610 from nextcloud/fix/usertrait/backend-initialization
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Traits/UserTrait.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Traits/UserTrait.php b/tests/lib/Traits/UserTrait.php
index 3374b6b5fdd..05fb0caa8ca 100644
--- a/tests/lib/Traits/UserTrait.php
+++ b/tests/lib/Traits/UserTrait.php
@@ -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 {