Skip to content

Commit 5b56b85

Browse files
committed
fix tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 18ce04d commit 5b56b85

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/SettingsControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ protected function setUp(): void {
5959
$l10nFactory = \OC::$server->get(IFactory::class);
6060
$l = $l10nFactory->get('bookmarks');
6161
$this->config = \OC::$server->get(IConfig::class);
62-
$userSettings = new UserSettingsService($this->userId, $this->appName, $this->config, $l);
62+
$userSettings = \OCP\Server::get(UserSettingsService::class);
63+
$userSettings->setUserId($this->userId);
6364
if (!$this->userManager->userExists($this->userId)) {
6465
$this->userManager->createUser($this->userId, 'password');
6566
}

0 commit comments

Comments
 (0)