adjust test

This commit is contained in:
Robin Appelman 2015-05-13 16:36:06 +02:00
parent 89959a856c
commit 8f1a609512
1 changed files with 7 additions and 1 deletions

View File

@ -318,9 +318,15 @@ class Storage extends \Test\TestCase {
*/
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
->setConstructorArgs([[]])
->setMethods(['rename', 'unlink'])
->setMethods(['rename', 'unlink', 'moveFromStorage'])
->getMock();
$storage->expects($this->any())
->method('rename')
->will($this->returnValue(false));
$storage->expects($this->any())
->method('moveFromStorage')
->will($this->returnValue(false));
$storage->expects($this->any())
->method('unlink')
->will($this->returnValue(false));