summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-22 18:36:27 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-22 18:36:27 +0100
commit2d947835b94362982c98caba68aa1073ab466249 (patch)
tree5ebcbeb5bd6b86799d8fb12f39242912bd1c1789 /apps/files_external/tests
parent476d8e6de073a095dda012079e7a6697e481c3c3 (diff)
downloadnextcloud-server-2d947835b94362982c98caba68aa1073ab466249.tar.gz
nextcloud-server-2d947835b94362982c98caba68aa1073ab466249.zip
Now also preventing the user of "Shared" as mountpoint
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/mountconfig.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/tests/mountconfig.php b/apps/files_external/tests/mountconfig.php
index 77241c4dd2a..941aec680bb 100644
--- a/apps/files_external/tests/mountconfig.php
+++ b/apps/files_external/tests/mountconfig.php
@@ -44,6 +44,8 @@ class Test_Mount_Config extends \PHPUnit_Framework_TestCase {
$isPersonal = false;
$this->assertEquals(false, OC_Mount_Config::addMountPoint('', $storageClass, array(), $mountType, $applicable, $isPersonal));
$this->assertEquals(false, OC_Mount_Config::addMountPoint('/', $storageClass, array(), $mountType, $applicable, $isPersonal));
+ $this->assertEquals(false, OC_Mount_Config::addMountPoint('Shared', $storageClass, array(), $mountType, $applicable, $isPersonal));
+ $this->assertEquals(false, OC_Mount_Config::addMountPoint('/Shared', $storageClass, array(), $mountType, $applicable, $isPersonal));
}
}