From 902fb8f9fc963701f3ecfb190a7dacc8eba43e54 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 8 Oct 2024 11:12:01 +0200 Subject: [PATCH] fix(UserTrait): Fix backend initialization Signed-off-by: provokateurin --- tests/lib/Traits/UserTrait.php | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.5