diff options
author | Robin Appelman <robin@icewind.nl> | 2016-09-20 15:27:40 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-10-12 16:12:34 +0200 |
commit | 3845d4ec9a7a84cda4f2fe5fbb4a65e90dfe21ff (patch) | |
tree | 233cf89b99b86c120e43e01aea0731742b3206df /apps/files_sharing/tests/External | |
parent | 7ce68ce6ac03f85532e312a68e61aaa0e09037ba (diff) | |
download | nextcloud-server-3845d4ec9a7a84cda4f2fe5fbb4a65e90dfe21ff.tar.gz nextcloud-server-3845d4ec9a7a84cda4f2fe5fbb4a65e90dfe21ff.zip |
more robust test setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/tests/External')
-rw-r--r-- | apps/files_sharing/tests/External/ManagerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/External/ManagerTest.php b/apps/files_sharing/tests/External/ManagerTest.php index 096bbe85776..48476888bdd 100644 --- a/apps/files_sharing/tests/External/ManagerTest.php +++ b/apps/files_sharing/tests/External/ManagerTest.php @@ -58,7 +58,7 @@ class ManagerTest extends TestCase { * @var \OCP\IUser */ private $user; - private $mountProvider; + private $testMountProvider; protected function setUp() { parent::setUp(); @@ -82,13 +82,13 @@ class ManagerTest extends TestCase { $discoveryManager, $this->uid ); - $this->mountProvider = new MountProvider(\OC::$server->getDatabaseConnection(), function() { + $this->testMountProvider = new MountProvider(\OC::$server->getDatabaseConnection(), function() { return $this->manager; }); } private function setupMounts() { - $mounts = $this->mountProvider->getMountsForUser($this->user, new StorageFactory()); + $mounts = $this->testMountProvider->getMountsForUser($this->user, new StorageFactory()); foreach ($mounts as $mount) { $this->mountManager->addMount($mount); } |