[Pkg-owncloud-commits] [owncloud] 141/205: Remove test-specific method to make Bjoern and Joas happy

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:37:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 271ef9dedbebfb746a4e00e4d2782e0707cc4caa
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Jun 26 17:37:04 2015 +0200

    Remove test-specific method to make Bjoern and Joas happy
---
 lib/private/files/config/mountprovidercollection.php | 9 ---------
 tests/lib/files/view.php                             | 2 +-
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/lib/private/files/config/mountprovidercollection.php b/lib/private/files/config/mountprovidercollection.php
index 1f9c356..a14a6ef 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 6aa9069..52273c1 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', [[]]);
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list