diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Node/IntegrationTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Files/Node/IntegrationTest.php b/tests/lib/Files/Node/IntegrationTest.php index 7d87cdb5dd0..fe6fe779ad0 100644 --- a/tests/lib/Files/Node/IntegrationTest.php +++ b/tests/lib/Files/Node/IntegrationTest.php @@ -12,6 +12,7 @@ use OC\Files\Storage\Temporary; use OC\Files\View; use OC\Memcache\ArrayCache; use OCP\EventDispatcher\IEventDispatcher; +use OCP\Files\Config\IUserMountCache; use OCP\Files\Mount\IMountManager; use OCP\ICacheFactory; use OCP\IUserManager; @@ -46,8 +47,7 @@ class IntegrationTest extends \Test\TestCase { protected function setUp(): void { parent::setUp(); - /** @var IMountManager $manager */ - $manager = \OC::$server->get(IMountManager::class); + $manager = \OCP\Server::get(IMountManager::class); \OC_Hook::clear('OC_Filesystem'); @@ -64,7 +64,7 @@ class IntegrationTest extends \Test\TestCase { $manager, $this->view, $user, - \OC::$server->getUserMountCache(), + \OCP\Server::get(IUserMountCache::class), $this->createMock(LoggerInterface::class), $this->createMock(IUserManager::class), $this->createMock(IEventDispatcher::class), |