diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-23 22:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 22:15:38 +0200 |
commit | 2f1b17d44a854221a4b3c461df80d0522ac3c8b5 (patch) | |
tree | 23893d214363f052928264c4ffdc85b51c379be8 /tests/lib | |
parent | 3ed102497e2a3b732a0c7e91398b5bb6d147d12a (diff) | |
parent | a0c2342c20d874a87335a3e1c21bbfa05a71a776 (diff) | |
download | nextcloud-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.php | 8 |
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; |