diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-13 13:58:01 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-13 13:58:01 +0200 |
commit | 1f7df3eba826db3310d1e0e1b15828a6801438a7 (patch) | |
tree | 7b8a4d795ca0a6b004375bc88e891dc217b3c46a /tests/lib/connector/sabre | |
parent | 11e1acd8ec4016493764c4893fb7beadb4cef71b (diff) | |
download | nextcloud-server-1f7df3eba826db3310d1e0e1b15828a6801438a7.tar.gz nextcloud-server-1f7df3eba826db3310d1e0e1b15828a6801438a7.zip |
Added unit test to quota plugin for free_space argument
Diffstat (limited to 'tests/lib/connector/sabre')
-rw-r--r-- | tests/lib/connector/sabre/quotaplugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/connector/sabre/quotaplugin.php b/tests/lib/connector/sabre/quotaplugin.php index 48f8f319ae4..3d9cd9b5da0 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; } |