aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/config/mountprovidercollection.php9
-rw-r--r--tests/lib/files/view.php2
2 files changed, 1 insertions, 10 deletions
diff --git a/lib/private/files/config/mountprovidercollection.php b/lib/private/files/config/mountprovidercollection.php
index 1f9c356af91..a14a6ef796f 100644
--- a/lib/private/files/config/mountprovidercollection.php
+++ b/lib/private/files/config/mountprovidercollection.php
@@ -71,13 +71,4 @@ class MountProviderCollection implements IMountProviderCollection, Emitter {
$this->providers[] = $provider;
$this->emit('\OC\Files\Config', 'registerMountProvider', [$provider]);
}
-
- /**
- * Clear registered providers
- *
- * @internal
- */
- public function clear() {
- $this->providers = [];
- }
}
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 6aa9069e0b5..52273c15f1a 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -1900,7 +1900,7 @@ class View extends \Test\TestCase {
$this->assertNull($this->getFileLockType($view, $sourcePath, true), 'Source path not locked after operation');
$this->assertNull($this->getFileLockType($view, $targetPath, true), 'Target path not locked after operation');
- $mountProviderCollection->clear();
+ \Test\TestCase::invokePrivate($mountProviderCollection, 'providers', [[]]);
}
/**