aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/IntegrationTest.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-02 23:16:51 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-11-02 23:16:51 +0100
commit68cebef64ca38ea93bc1006d667726f42d7f9805 (patch)
treee0f060c68fb0d85d303eabb263cd8666407bb072 /tests/lib/Files/Node/IntegrationTest.php
parent8653d1486243079426a855584111db519af6e544 (diff)
downloadnextcloud-server-68cebef64ca38ea93bc1006d667726f42d7f9805.tar.gz
nextcloud-server-68cebef64ca38ea93bc1006d667726f42d7f9805.zip
DI for root.php
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/Files/Node/IntegrationTest.php')
-rw-r--r--tests/lib/Files/Node/IntegrationTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/lib/Files/Node/IntegrationTest.php b/tests/lib/Files/Node/IntegrationTest.php
index da753f833c2..b5cd832d1dd 100644
--- a/tests/lib/Files/Node/IntegrationTest.php
+++ b/tests/lib/Files/Node/IntegrationTest.php
@@ -12,6 +12,8 @@ use OC\Files\Node\Root;
use OC\Files\Storage\Temporary;
use OC\Files\View;
use OC\User\User;
+use OCP\ILogger;
+use OCP\IUserManager;
/**
* Class IntegrationTest
@@ -47,7 +49,14 @@ class IntegrationTest extends \Test\TestCase {
$this->loginAsUser($user->getUID());
$this->view = new View();
- $this->root = new Root($manager, $this->view, $user, \OC::$server->getUserMountCache());
+ $this->root = new Root(
+ $manager,
+ $this->view,
+ $user,
+ \OC::$server->getUserMountCache(),
+ $this->createMock(ILogger::class),
+ $this->createMock(IUserManager::class)
+ );
$storage = new Temporary(array());
$subStorage = new Temporary(array());
$this->storages[] = $storage;