From 7dc1c7f7628f44e8c2544917c272be1ed20ab89c 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 3f7cfe419db45..d2c1444c94377 100644 --- a/tests/lib/Traits/UserTrait.php +++ b/tests/lib/Traits/UserTrait.php @@ -9,13 +9,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 {