summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-12 11:17:34 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-12 11:17:34 +0100
commitfcbb5d6cb328a755a637be8725c161f0dfb685a6 (patch)
tree98edcb275d0cbc670723af01aab4db8b703fb9c2 /apps/files_encryption
parent9f10f15fd459234c160fb3e41eab623607e52e72 (diff)
downloadnextcloud-server-fcbb5d6cb328a755a637be8725c161f0dfb685a6.tar.gz
nextcloud-server-fcbb5d6cb328a755a637be8725c161f0dfb685a6.zip
missed some replacements... now tests should work
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/tests/helper.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/apps/files_encryption/tests/helper.php b/apps/files_encryption/tests/helper.php
index cccf9c75222..45ef5e9ac49 100644
--- a/apps/files_encryption/tests/helper.php
+++ b/apps/files_encryption/tests/helper.php
@@ -1,25 +1,18 @@
<?php
/**
- * Copyright (c) 2012 Sam Tuke <samtuke@owncloud.com>
+ * Copyright (c) 2013 Bjoern Schiessle <schiessle@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
-require_once __DIR__ . '/../../../lib/base.php';
-require_once __DIR__ . '/../lib/crypt.php';
-require_once __DIR__ . '/../lib/keymanager.php';
-require_once __DIR__ . '/../lib/proxy.php';
-require_once __DIR__ . '/../lib/stream.php';
-require_once __DIR__ . '/../lib/util.php';
+
require_once __DIR__ . '/../lib/helper.php';
-require_once __DIR__ . '/../appinfo/app.php';
-require_once __DIR__ . '/util.php';
use OCA\Encryption;
/**
- * Class Test_Encryption_Keymanager
+ * Class Test_Encryption_Helper
*/
class Test_Encryption_Helper extends \PHPUnit_Framework_TestCase {
@@ -31,13 +24,13 @@ class Test_Encryption_Helper extends \PHPUnit_Framework_TestCase {
$partFilename = 'testfile.txt.part';
$filename = 'testfile.txt';
- $this->assertTrue(Encryption\Keymanager::isPartialFilePath($partFilename));
+ $this->assertTrue(Encryption\Helper::isPartialFilePath($partFilename));
$this->assertEquals('testfile.txt', Encryption\Helper::fixPartialFilePath($partFilename));
- $this->assertFalse(Encryption\Keymanager::isPartialFilePath($filename));
+ $this->assertFalse(Encryption\Helper::isPartialFilePath($filename));
- $this->assertEquals('testfile.txt', Encryption\Keymanager::fixPartialFilePath($filename));
+ $this->assertEquals('testfile.txt', Encryption\Helper::fixPartialFilePath($filename));
}