Merge pull request #48610 from nextcloud/fix/usertrait/backend-initialization

This commit is contained in:
Kate 2024-10-08 16:53:26 +02:00 committed by GitHub
commit 356f3ded52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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