Skip to content
Snippets Groups Projects
Commit 1f7df3eb authored by Vincent Petry's avatar Vincent Petry
Browse files

Added unit test to quota plugin for free_space argument

parent 11e1acd8
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,10 @@ class Test_OC_Connector_Sabre_QuotaPlugin extends \Test\TestCase { ...@@ -92,7 +92,10 @@ class Test_OC_Connector_Sabre_QuotaPlugin extends \Test\TestCase {
private function buildFileViewMock($quota) { private function buildFileViewMock($quota) {
// mock filesysten // mock filesysten
$view = $this->getMock('\OC\Files\View', array('free_space'), array(), '', false); $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; return $view;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment