summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-13 16:36:06 +0200
committerRobin Appelman <icewind@owncloud.com>2015-05-18 17:16:13 +0200
commit8f1a609512744f38976582e9e31b2c14c8f90d01 (patch)
tree8b69f7a8d1036b2700dc100371d8cd4da78eb6c1
parent89959a856c97a7267630a05356aa4f6699e0adc3 (diff)
downloadnextcloud-server-8f1a609512744f38976582e9e31b2c14c8f90d01.tar.gz
nextcloud-server-8f1a609512744f38976582e9e31b2c14c8f90d01.zip
adjust test
-rw-r--r--apps/files_trashbin/tests/storage.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_trashbin/tests/storage.php b/apps/files_trashbin/tests/storage.php
index 7415aba09e9..e0fdc43830e 100644
--- a/apps/files_trashbin/tests/storage.php
+++ b/apps/files_trashbin/tests/storage.php
@@ -318,10 +318,16 @@ 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));