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 <[email protected]>
  • Loading branch information
provokateurin authored and susnux committed Oct 15, 2024
1 parent 1b76925 commit b849115
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 b849115

Please sign in to comment.