Skip to content

Commit

Permalink
fix(UserTrait): Fix backend initialization
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin authored and susnux committed Oct 15, 2024
1 parent c027cec commit 7dc1c7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/lib/Traits/UserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,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 {
Expand Down

0 comments on commit 7dc1c7f

Please sign in to comment.