diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-24 23:41:39 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-24 23:41:39 +0100 |
commit | 709aacfa0fef29692bff231f09625db5ba0bef6f (patch) | |
tree | 1be698b156a5d30db5cb2a353ff7b8ef058d0692 /tests/lib/files/filesystem.php | |
parent | d3e37fa157faa59598e92a9aa02c6bbf818b60e0 (diff) | |
download | nextcloud-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/filesystem.php')
-rw-r--r-- | tests/lib/files/filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php index 363426511bd..5837093fdd6 100644 --- a/tests/lib/files/filesystem.php +++ b/tests/lib/files/filesystem.php @@ -60,7 +60,7 @@ class Filesystem extends \PHPUnit_Framework_TestCase { $this->assertEquals('/',\OC\Files\Filesystem::getMountPoint('/')); $this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some/folder')); $this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some/')); - $this->assertEquals('/',\OC\Files\Filesystem::getMountPoint('/some')); + $this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some')); list( , $internalPath)=\OC\Files\Filesystem::resolvePath('/some/folder'); $this->assertEquals('folder',$internalPath); } |