diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-07 11:12:59 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-07 11:12:59 -0500 |
commit | a5cab28bea6188ce840d7d115064c4780531e13d (patch) | |
tree | 6dd8b77c35c6a2082616d9427f573441ab63e5e4 /tests | |
parent | e5a497c9248fcab82b84befbc3842affccc71f9d (diff) | |
download | nextcloud-server-a5cab28bea6188ce840d7d115064c4780531e13d.tar.gz nextcloud-server-a5cab28bea6188ce840d7d115064c4780531e13d.zip |
Fix fetching source path of shared files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/mount.php | 8 |
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))); } } |