[Pkg-owncloud-commits] [owncloud] 77/123: Added unit test to quota plugin for free_space argument

David Prévot taffit at moszumanska.debian.org
Tue May 19 23:55:18 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 1f7df3eba826db3310d1e0e1b15828a6801438a7
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed May 13 13:58:01 2015 +0200

    Added unit test to quota plugin for free_space argument
---
 tests/lib/connector/sabre/quotaplugin.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/lib/connector/sabre/quotaplugin.php b/tests/lib/connector/sabre/quotaplugin.php
index 48f8f31..3d9cd9b 100644
--- a/tests/lib/connector/sabre/quotaplugin.php
+++ b/tests/lib/connector/sabre/quotaplugin.php
@@ -92,7 +92,10 @@ class Test_OC_Connector_Sabre_QuotaPlugin extends \Test\TestCase {
 	private function buildFileViewMock($quota) {
 		// mock filesysten
 		$view = $this->getMock('\OC\Files\View', array('free_space'), array(), '', false);
-		$view->expects($this->any())->method('free_space')->withAnyParameters()->will($this->returnValue($quota));
+		$view->expects($this->any())
+			->method('free_space')
+			->with($this->identicalTo(''))
+			->will($this->returnValue($quota));
 
 		return $view;
 	}

-- 
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