fix(UserTrait): Fix backend initialization

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/48610/head
provokateurin 2024-10-08 11:12:01 +07:00
parent d7aff6c150
commit 902fb8f9fc
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

@ -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 {