[Pkg-owncloud-commits] [owncloud] 47/457: adjust test

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 8f1a609512744f38976582e9e31b2c14c8f90d01
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed May 13 16:36:06 2015 +0200

    adjust test
---
 apps/files_trashbin/tests/storage.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/apps/files_trashbin/tests/storage.php b/apps/files_trashbin/tests/storage.php
index 7415aba..e0fdc43 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));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list