summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-23 22:15:38 +0200
committerGitHub <noreply@github.com>2016-08-23 22:15:38 +0200
commit2f1b17d44a854221a4b3c461df80d0522ac3c8b5 (patch)
tree23893d214363f052928264c4ffdc85b51c379be8 /tests/lib
parent3ed102497e2a3b732a0c7e91398b5bb6d147d12a (diff)
parenta0c2342c20d874a87335a3e1c21bbfa05a71a776 (diff)
downloadnextcloud-server-2f1b17d44a854221a4b3c461df80d0522ac3c8b5.tar.gz
nextcloud-server-2f1b17d44a854221a4b3c461df80d0522ac3c8b5.zip
Merge pull request #1007 from nextcloud/shared-storage-non-recursive
Fix shared storage recursive setup
Diffstat (limited to 'tests/lib')
-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;