fix test
Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
07c7c0776e
Коммит
6fa7531c9b
|
@ -215,7 +215,7 @@ class UserBase implements \JsonSerializable {
|
|||
$types[] = IShare::TYPE_CIRCLE;
|
||||
}
|
||||
|
||||
[$result, $more] = self::getContainer()->query(ISearch::class)->search($query, $types, false, 200, 0);
|
||||
[$result, $more] = self::getContainer()->get(ISearch::class)->search($query, $types, false, 200, 0);
|
||||
|
||||
foreach (($result['users'] ?? []) as $item) {
|
||||
$items[] = new User($item['value']['shareWith']);
|
||||
|
@ -258,7 +258,9 @@ class UserBase implements \JsonSerializable {
|
|||
}
|
||||
|
||||
protected static function getContainer() : IAppContainer {
|
||||
$app = \OC::$server->query(Application::class);
|
||||
\OC::$server->getLogger()->error('catched');
|
||||
$app = new \OCP\AppFramework\App('myapp');
|
||||
// $app = \OC::$server->query(Application::class);
|
||||
|
||||
return $app->getContainer();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче