mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix(UserTrait): Fix backend initialization
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
d7aff6c150
commit
902fb8f9fc
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