aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-10-08 11:12:01 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-10-15 16:50:28 +0200
commit7dc1c7f7628f44e8c2544917c272be1ed20ab89c (patch)
tree0b6ff5d62a681ffb6e08913c5ec44f7b46520cdf /tests
parentc027ceca5264c4af37fb1d292433131b98ebaec3 (diff)
downloadnextcloud-server-7dc1c7f7628f44e8c2544917c272be1ed20ab89c.tar.gz
nextcloud-server-7dc1c7f7628f44e8c2544917c272be1ed20ab89c.zip
fix(UserTrait): Fix backend initializationbackport/47896/stable29
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Traits/UserTrait.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Traits/UserTrait.php b/tests/lib/Traits/UserTrait.php
index 3f7cfe419db..d2c1444c943 100644
--- a/tests/lib/Traits/UserTrait.php
+++ b/tests/lib/Traits/UserTrait.php
@@ -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 {