diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-04-13 12:36:47 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-04-13 12:36:47 +0200 |
commit | 2822d0579e170aa5f58d8726acb8c67e5633b523 (patch) | |
tree | 2baac013db05cefed3acaf312b7094278900a884 /tests | |
parent | c3fbc2b6fd09bb5b94112da9248cae28d6ef85e3 (diff) | |
download | nextcloud-server-2822d0579e170aa5f58d8726acb8c67e5633b523.tar.gz nextcloud-server-2822d0579e170aa5f58d8726acb8c67e5633b523.zip |
Properly add trailing slash to mount point
Fixes resolving mount points when shared mount point's target name has
the same prefix as the source name
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/mount/mountpoint.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/files/mount/mountpoint.php b/tests/lib/files/mount/mountpoint.php index 5a9c6de3e0a..29610e6058d 100644 --- a/tests/lib/files/mount/mountpoint.php +++ b/tests/lib/files/mount/mountpoint.php @@ -31,6 +31,10 @@ class MountPoint extends \Test\TestCase { $this->assertEquals($storage, $mountPoint->getStorage()); $this->assertEquals(123, $mountPoint->getStorageId()); + $this->assertEquals('/mountpoint/', $mountPoint->getMountPoint()); + + $mountPoint->setMountPoint('another'); + $this->assertEquals('/another/', $mountPoint->getMountPoint()); } public function testInvalidStorage() { |