summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests/storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/tests/storage.php')
-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 d8ddf74e24a..f99bc91dd26 100644
--- a/apps/files_trashbin/tests/storage.php
+++ b/apps/files_trashbin/tests/storage.php
@@ -316,10 +316,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));