Added unit test to quota plugin for free_space argument

remotes/origin/poc-doctrine-migrations
Vincent Petry 2015-05-13 13:58:01 +07:00
parent 11e1acd8ec
commit 1f7df3eba8
1 changed files with 4 additions and 1 deletions

@ -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;
}