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

pull/48619/head
Kate 2024-10-08 16:53:26 +07:00 committed by GitHub
commit 356f3ded52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {