summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-05 16:43:10 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-05 16:43:10 +0200
commit52c8b488cb0dd0fc95078602eb1e14516c74ae2e (patch)
treed726686d5f06d862a68bb95b675388359f164fe0 /apps
parente1c562f66b8547e0418a14f9f4fe8616c622caa8 (diff)
downloadnextcloud-server-52c8b488cb0dd0fc95078602eb1e14516c74ae2e.tar.gz
nextcloud-server-52c8b488cb0dd0fc95078602eb1e14516c74ae2e.zip
fix test
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/external/managertest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/external/managertest.php b/apps/files_sharing/tests/external/managertest.php
index 2d31b163064..7242779d455 100644
--- a/apps/files_sharing/tests/external/managertest.php
+++ b/apps/files_sharing/tests/external/managertest.php
@@ -23,6 +23,7 @@ namespace OCA\Files_Sharing\Tests\External;
use OC\Files\Storage\StorageFactory;
use OCA\Files_Sharing\External\Manager;
+use OCA\Files_Sharing\External\MountProvider;
use OCA\Files_Sharing\Tests\TestCase;
use Test\Traits\UserTrait;
@@ -44,6 +45,7 @@ class ManagerTest extends TestCase {
* @var \OCP\IUser
*/
private $user;
+ private $mountProvider;
protected function setUp() {
parent::setUp();
@@ -62,10 +64,13 @@ class ManagerTest extends TestCase {
\OC::$server->getNotificationManager(),
$this->uid
);
+ $this->mountProvider = new MountProvider(\OC::$server->getDatabaseConnection(), function() {
+ return $this->manager;
+ });
}
private function setupMounts() {
- $mounts = $this->manager->getMountsForUser($this->user, new StorageFactory());
+ $mounts = $this->mountProvider->getMountsForUser($this->user, new StorageFactory());
foreach ($mounts as $mount) {
$this->mountManager->addMount($mount);
}