summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/tests/util.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-08 20:57:49 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-01-09 12:46:24 +0100
commitd699d3151810784d01b59019fdf40f0924556ddc (patch)
tree20b6b81817cbe19f3689c51730c935ce5495f868 /apps/files_encryption/tests/util.php
parent5311d92c5c9dc0de297e36e4009b1e99f386e6bd (diff)
downloadnextcloud-server-d699d3151810784d01b59019fdf40f0924556ddc.tar.gz
nextcloud-server-d699d3151810784d01b59019fdf40f0924556ddc.zip
make versions of shared files downloadable
Diffstat (limited to 'apps/files_encryption/tests/util.php')
-rwxr-xr-xapps/files_encryption/tests/util.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/apps/files_encryption/tests/util.php b/apps/files_encryption/tests/util.php
index c75f406cb61..4e0b4f2d0de 100755
--- a/apps/files_encryption/tests/util.php
+++ b/apps/files_encryption/tests/util.php
@@ -575,43 +575,6 @@ class Util extends TestCase {
}
/**
- * @param string $user
- * @param bool $create
- * @param bool $password
- */
- public static function loginHelper($user, $create = false, $password = false, $loadEncryption = true) {
- if ($create) {
- try {
- \OC_User::createUser($user, $user);
- } catch(\Exception $e) { // catch username is already being used from previous aborted runs
-
- }
- }
-
- if ($password === false) {
- $password = $user;
- }
-
- \OC_Util::tearDownFS();
- \OC_User::setUserId('');
- \OC\Files\Filesystem::tearDown();
- \OC_User::setUserId($user);
- \OC_Util::setupFS($user);
-
- if ($loadEncryption) {
- $params['uid'] = $user;
- $params['password'] = $password;
- \OCA\Files_Encryption\Hooks::login($params);
- }
- }
-
- public static function logoutHelper() {
- \OC_Util::tearDownFS();
- \OC_User::setUserId(false);
- \OC\Files\Filesystem::tearDown();
- }
-
- /**
* helper function to set migration status to the right value
* to be able to test the migration path
*