mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix: Remove calls to legacy callers in tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2406677b40
commit
70ef0a8db7
2 changed files with 2 additions and 2 deletions
|
|
@ -393,7 +393,7 @@ class CacheTest extends \Test\TestCase {
|
|||
$id4 = $this->cache->put($file4, $fileData['foo2']);
|
||||
$id5 = $this->cache->put($file5, $fileData['foo3']);
|
||||
|
||||
$tagManager = \OC::$server->getTagManager()->load('files', [], false, $userId);
|
||||
$tagManager = \OCP\Server::get(\OCP\ITagManager::class)->load('files', [], false, $userId);
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag1'));
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag2'));
|
||||
$this->assertTrue($tagManager->tagAs($id2, 'tag2'));
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class HookConnectorTest extends TestCase {
|
|||
Filesystem::getMountManager(),
|
||||
$this->view,
|
||||
\OC::$server->getUserManager()->get($this->userId),
|
||||
\OC::$server->getUserMountCache(),
|
||||
\OCP\Server::get(\OCP\Files\Config\IUserMountCache::class),
|
||||
$this->createMock(LoggerInterface::class),
|
||||
$this->createMock(IUserManager::class),
|
||||
$this->createMock(IEventDispatcher::class),
|
||||
|
|
|
|||
Loading…
Reference in a new issue