diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-06-26 17:37:04 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-06-26 17:37:04 +0200 |
commit | 271ef9dedbebfb746a4e00e4d2782e0707cc4caa (patch) | |
tree | b2a2235a2e0188e9b1a2432f0930e667bb693576 | |
parent | eae08d0adc923b9c5fedd01332937ae6e63d6869 (diff) | |
download | nextcloud-server-271ef9dedbebfb746a4e00e4d2782e0707cc4caa.tar.gz nextcloud-server-271ef9dedbebfb746a4e00e4d2782e0707cc4caa.zip |
Remove test-specific method to make Bjoern and Joas happy
-rw-r--r-- | lib/private/files/config/mountprovidercollection.php | 9 | ||||
-rw-r--r-- | tests/lib/files/view.php | 2 |
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', [[]]); } /** |