diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-08 15:35:30 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-18 11:55:15 +0200 |
commit | dc870cb450cabadf79fb805715ed772bab8baafd (patch) | |
tree | 4053af0409c6041414e9427eb4ed700a8243a455 /tests/lib/connector/sabre | |
parent | a3d734f6cd04ba14456880c3f0b0fd54b40a0acf (diff) | |
download | nextcloud-server-dc870cb450cabadf79fb805715ed772bab8baafd.tar.gz nextcloud-server-dc870cb450cabadf79fb805715ed772bab8baafd.zip |
Add tests for doing dav requests with encryption enabled
Diffstat (limited to 'tests/lib/connector/sabre')
-rw-r--r-- | tests/lib/connector/sabre/requesttest/encryptionuploadtest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/connector/sabre/requesttest/encryptionuploadtest.php b/tests/lib/connector/sabre/requesttest/encryptionuploadtest.php new file mode 100644 index 00000000000..f1849c94760 --- /dev/null +++ b/tests/lib/connector/sabre/requesttest/encryptionuploadtest.php @@ -0,0 +1,25 @@ +<?php +/** + * Copyright (c) 2015 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace Test\Connector\Sabre\RequestTest; + +use OC\Files\View; +use Test\Traits\EncryptionTrait; + +class EncryptionUploadTest extends UploadTest { + use EncryptionTrait; + + protected function setupUser($name, $password) { + $this->createUser($name, $password); + $tmpFolder = \OC::$server->getTempManager()->getTemporaryFolder(); + $this->registerMount($name, '\OC\Files\Storage\Local', '/' . $name, ['datadir' => $tmpFolder]); + $this->setupForUser($name, $password); + $this->loginWithEncryption($name); + return new View('/' . $name . '/files'); + } +} |