summaryrefslogtreecommitdiffstats
path: root/tests/lib/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-24 23:41:39 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-24 23:41:39 +0100
commit709aacfa0fef29692bff231f09625db5ba0bef6f (patch)
tree1be698b156a5d30db5cb2a353ff7b8ef058d0692 /tests/lib/files/view.php
parentd3e37fa157faa59598e92a9aa02c6bbf818b60e0 (diff)
downloadnextcloud-server-709aacfa0fef29692bff231f09625db5ba0bef6f.tar.gz
nextcloud-server-709aacfa0fef29692bff231f09625db5ba0bef6f.zip
change behaviour of Filesystem::getMountPoint when a mountpoint is passed as path without trailing slash
Diffstat (limited to 'tests/lib/files/view.php')
-rw-r--r--tests/lib/files/view.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index ecfc803dc23..6f8d29c25b2 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -71,6 +71,18 @@ class View extends \PHPUnit_Framework_TestCase {
$this->assertEquals($storageSize + $textSize, $folderData[2]['size']);
$this->assertEquals($storageSize, $folderData[3]['size']);
+ $folderData = $rootView->getDirectoryContent('/substorage');
+ /**
+ * expected entries:
+ * foo.png
+ * foo.txt
+ * folder
+ */
+ $this->assertEquals(3, count($folderData));
+ $this->assertEquals('foo.png', $folderData[0]['name']);
+ $this->assertEquals('foo.txt', $folderData[1]['name']);
+ $this->assertEquals('folder', $folderData[2]['name']);
+
$folderView = new \OC\Files\View('/folder');
$this->assertEquals($rootView->getFileInfo('/folder'), $folderView->getFileInfo('/'));