mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Merge pull request #48610 from nextcloud/fix/usertrait/backend-initialization
This commit is contained in:
commit
356f3ded52
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue