summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-10-10 16:24:28 +0200
committerRobin Appelman <robin@icewind.nl>2018-10-17 14:57:43 +0200
commita369adb4cde6b210d5e1b86743995bdc004fec2c (patch)
treebc994cfc539a9da0eea8901cf02568a9e4d872e1
parentb94fbcebeb6ef092347a80ae73d1f48f3fa754f9 (diff)
downloadnextcloud-server-a369adb4cde6b210d5e1b86743995bdc004fec2c.tar.gz
nextcloud-server-a369adb4cde6b210d5e1b86743995bdc004fec2c.zip
fix trash storage wrapper tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_trashbin/tests/StorageTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php
index 67e622aa1c9..058d64d1aa0 100644
--- a/apps/files_trashbin/tests/StorageTest.php
+++ b/apps/files_trashbin/tests/StorageTest.php
@@ -34,6 +34,7 @@ use OC\Files\Storage\Temporary;
use OC\Files\Filesystem;
use OCA\Files_Trashbin\Events\MoveToTrashEvent;
use OCA\Files_Trashbin\Storage;
+use OCA\Files_Trashbin\Trash\ITrashManager;
use OCP\Files\Cache\ICache;
use OCP\Files\IRootFolder;
use OCP\Files\Node;
@@ -546,6 +547,7 @@ class StorageTest extends \Test\TestCase {
->disableOriginalConstructor()->getMock();
$rootFolder = $this->createMock(IRootFolder::class);
$node = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock();
+ $trashManager = $this->createMock(ITrashManager::class);
$event = $this->getMockBuilder(MoveToTrashEvent::class)->disableOriginalConstructor()->getMock();
$event->expects($this->any())->method('shouldMoveToTrashBin')->willReturn(!$appDisablesTrash);
@@ -555,6 +557,7 @@ class StorageTest extends \Test\TestCase {
->setConstructorArgs(
[
['mountPoint' => $mountPoint, 'storage' => $tmpStorage],
+ $trashManager,
$userManager,
$logger,
$eventDispatcher,