Skip to content

Commit 902fb8f

Browse files
committed
fix(UserTrait): Fix backend initialization
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent d7aff6c commit 902fb8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/Traits/UserTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
namespace Test\Traits;
99

1010
use OC\User\User;
11+
use OCP\EventDispatcher\IEventDispatcher;
1112
use OCP\IUser;
13+
use OCP\Server;
1214

1315
class DummyUser extends User {
1416
private string $uid;
1517

1618
public function __construct(string $uid) {
1719
$this->uid = $uid;
20+
parent::__construct($uid, null, Server::get(IEventDispatcher::class));
1821
}
1922

2023
public function getUID(): string {

0 commit comments

Comments
 (0)