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 8, 2024
1 parent 198c2d3 commit d10330b
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 @@ -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 {
Expand Down

0 comments on commit d10330b

Please sign in to comment.