diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-13 13:16:07 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-13 13:16:07 +0200 |
commit | a88e013f722a2bf30100074760509613c76ca807 (patch) | |
tree | 5e436a6f6973206ada03c870b07e4407f7e5e0a1 /tests/lib | |
parent | b67301ef998663df86abe7f24127910e0aa110be (diff) | |
parent | 2822d0579e170aa5f58d8726acb8c67e5633b523 (diff) | |
download | nextcloud-server-a88e013f722a2bf30100074760509613c76ca807.tar.gz nextcloud-server-a88e013f722a2bf30100074760509613c76ca807.zip |
Merge pull request #15570 from owncloud/shares-properlyformatmountpoint
Properly add trailing slash to mount point
Diffstat (limited to 'tests/lib')
-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() { |