diff options
author | Robin Appelman <robin@icewind.nl> | 2018-10-10 16:24:28 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-10-17 14:57:43 +0200 |
commit | a369adb4cde6b210d5e1b86743995bdc004fec2c (patch) | |
tree | bc994cfc539a9da0eea8901cf02568a9e4d872e1 | |
parent | b94fbcebeb6ef092347a80ae73d1f48f3fa754f9 (diff) | |
download | nextcloud-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.php | 3 |
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, |