summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-22 15:12:39 +0200
committerRobin Appelman <robin@icewind.nl>2016-08-23 14:52:18 +0200
commita0c2342c20d874a87335a3e1c21bbfa05a71a776 (patch)
treede17cd95db017e85e1a25f4a327beb045569392e /tests
parent1e7c108bff45dfa5081fe6c5ec6115fe8c8d699a (diff)
downloadnextcloud-server-a0c2342c20d874a87335a3e1c21bbfa05a71a776.tar.gz
nextcloud-server-a0c2342c20d874a87335a3e1c21bbfa05a71a776.zip
prevent infinite recursion while getting storage from mount
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;