Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-03-07 20:12:59 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-03-07 20:12:59 +0400
commita5cab28bea6188ce840d7d115064c4780531e13d (patch)
tree6dd8b77c35c6a2082616d9427f573441ab63e5e4 /tests
parente5a497c9248fcab82b84befbc3842affccc71f9d (diff)
Fix fetching source path of shared files
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/mount.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/files/mount.php b/tests/lib/files/mount.php
index 4e6aaf0679b..6a5c025b0e1 100644
--- a/tests/lib/files/mount.php
+++ b/tests/lib/files/mount.php
@@ -42,7 +42,7 @@ class Mount extends \PHPUnit_Framework_TestCase {
$this->assertEquals(array($mount), \OC\Files\Mount::findById($id));
$mount2 = new \OC\Files\Mount($storage, '/foo/bar');
- $this->assertEquals(array($mount, $mount2), \OC\Files\Mount::findById($id));
+ $this->assertEquals(array($mount, $mount2), \OC\Files\Mount::findByStorageId($id));
}
public function testLong() {
@@ -51,8 +51,8 @@ class Mount extends \PHPUnit_Framework_TestCase {
$id = $mount->getStorageId();
$storageId = $storage->getId();
- $this->assertEquals(array($mount), \OC\Files\Mount::findById($id));
- $this->assertEquals(array($mount), \OC\Files\Mount::findById($storageId));
- $this->assertEquals(array($mount), \OC\Files\Mount::findById(md5($storageId)));
+ $this->assertEquals(array($mount), \OC\Files\Mount::findByStorageId($id));
+ $this->assertEquals(array($mount), \OC\Files\Mount::findByStorageId($storageId));
+ $this->assertEquals(array($mount), \OC\Files\Mount::findByStorageId(md5($storageId)));
}
}