summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-22 13:09:42 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-22 13:09:42 +0200
commit225cde21830459db044d6564c7a9cf62b7dd5944 (patch)
tree7a56ae0dbb91895f191df3686267e55199672035 /tests
parent987bc138df89be2d0afdf268ab5c991b1bbe830b (diff)
downloadnextcloud-server-225cde21830459db044d6564c7a9cf62b7dd5944.tar.gz
nextcloud-server-225cde21830459db044d6564c7a9cf62b7dd5944.zip
pass KeyStorage via ctor
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/wrapper/encryption.php27
1 files changed, 1 insertions, 26 deletions
diff --git a/tests/lib/files/storage/wrapper/encryption.php b/tests/lib/files/storage/wrapper/encryption.php
index 228c7b08d61..1d776555503 100644
--- a/tests/lib/files/storage/wrapper/encryption.php
+++ b/tests/lib/files/storage/wrapper/encryption.php
@@ -66,7 +66,7 @@ class Encryption extends \Test\Files\Storage\Storage {
->setMethods(['getOption'])
->getMock();
$mount->expects($this->any())->method('getOption')->willReturn(true);
- $this->instance = new EncryptionWrapper([
+ $this->instance = new \OC\Files\Storage\Wrapper\Encryption([
'storage' => $this->sourceStorage,
'root' => 'foo',
'mountPoint' => '/',
@@ -105,28 +105,3 @@ class Encryption extends \Test\Files\Storage\Storage {
$this->instance->rename('folder', 'flodder');
}
}
-
-//
-// FIXME: this is too bad and needs adjustment
-//
-class EncryptionWrapper extends \OC\Files\Storage\Wrapper\Encryption {
- private $keyStore;
-
- public function __construct(
- $parameters,
- \OC\Encryption\Manager $encryptionManager = null,
- \OC\Encryption\Util $util = null,
- \OC\Log $logger = null,
- \OC\Encryption\File $fileHelper = null,
- $uid = null,
- $keyStore = null
- ) {
- $this->keyStore = $keyStore;
- parent::__construct($parameters, $encryptionManager, $util, $logger, $fileHelper, $uid);
- }
-
- protected function getKeyStorage() {
- return $this->keyStore;
- }
-
-}