summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-23 22:15:21 +0200
committerGitHub <noreply@github.com>2016-08-23 22:15:21 +0200
commit805fc222764dd6283d5eaf60c1c71a2f0a4b48d7 (patch)
treea1163e3cfcedb1f1098484e89860f64fb2e96b27 /tests
parente5eff3c24485615bbeeb176a4e30fd79b909e641 (diff)
parentfa980af53c2ec3f024a5f4e25d2011e95c6e83e7 (diff)
downloadnextcloud-server-805fc222764dd6283d5eaf60c1c71a2f0a4b48d7.tar.gz
nextcloud-server-805fc222764dd6283d5eaf60c1c71a2f0a4b48d7.zip
Merge pull request #1008 from nextcloud/shared-storage-non-recursive-10
[10] Fix shared storage recursive setup
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Mount/MountPointTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Files/Mount/MountPointTest.php b/tests/lib/Files/Mount/MountPointTest.php
index 392f10c7170..799f441a1ab 100644
--- a/tests/lib/Files/Mount/MountPointTest.php
+++ b/tests/lib/Files/Mount/MountPointTest.php
@@ -16,9 +16,9 @@ class MountPointTest extends \Test\TestCase {
->method('getId')
->will($this->returnValue(123));
- $loader = $this->getMock('\OCP\Files\Storage\IStorageFactory');
+ $loader = $this->getMock('\OC\Files\Storage\StorageFactory');
$loader->expects($this->once())
- ->method('getInstance')
+ ->method('wrap')
->will($this->returnValue($storage));
$mountPoint = new \OC\Files\Mount\MountPoint(
@@ -38,9 +38,9 @@ class MountPointTest extends \Test\TestCase {
}
public function testInvalidStorage() {
- $loader = $this->getMock('\OCP\Files\Storage\IStorageFactory');
+ $loader = $this->getMock('\OC\Files\Storage\StorageFactory');
$loader->expects($this->once())
- ->method('getInstance')
+ ->method('wrap')
->will($this->throwException(new \Exception('Test storage init exception')));
$called = false;