summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-20 10:01:49 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-20 10:01:49 +0100
commit49f2014e0c131a07bc0139ce437cb8c170ad518d (patch)
tree5f6b5446a655665ccf2d182856bcf77dcbf75b07 /apps/files_external/tests
parent8f22535e754d1ace31c8592c5998925fae4b2890 (diff)
downloadnextcloud-server-49f2014e0c131a07bc0139ce437cb8c170ad518d.tar.gz
nextcloud-server-49f2014e0c131a07bc0139ce437cb8c170ad518d.zip
Revert "Added extra checks for ext storage class"
This reverts commit 9e9a5b9ea1f9b4699cf2d0c621f3f911f3639df9. Unit tests weren't ready, need further tweaking.
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/mountconfig.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/files_external/tests/mountconfig.php b/apps/files_external/tests/mountconfig.php
index 4c61b8961f3..941aec680bb 100644
--- a/apps/files_external/tests/mountconfig.php
+++ b/apps/files_external/tests/mountconfig.php
@@ -48,28 +48,4 @@ class Test_Mount_Config extends \PHPUnit_Framework_TestCase {
$this->assertEquals(false, OC_Mount_Config::addMountPoint('/Shared', $storageClass, array(), $mountType, $applicable, $isPersonal));
}
-
- public function testAddMountPointSingleUser() {
- \OC_User::setUserId('test');
- $mountType = 'user';
- $applicable = 'test';
- $isPersonal = true;
- // local
- $this->assertEquals(false, OC_Mount_Config::addMountPoint('/ext', '\OC\Files\storage\local', array(), $mountType, $applicable, $isPersonal));
- // non-local
- $this->assertEquals(true, OC_Mount_Config::addMountPoint('/ext', '\OC\Files\Storage\SFTP', array(), $mountType, $applicable, $isPersonal));
-
- }
-
- public function testAddMountPointUnexistClass() {
- \OC_User::setUserId('test');
- $storageClass = 'Unexist_Storage';
- $mountType = 'user';
- $applicable = 'test';
- $isPersonal = true;
- // local
- // non-local
- $this->assertEquals(false, OC_Mount_Config::addMountPoint('/ext', $storageClass, array(), $mountType, $applicable, $isPersonal));
-
- }
}