summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/tests/util.php
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-01 01:43:56 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-01 01:43:56 +0200
commit04b0843bb4484695ec6c4fb060a4ae4b3e8a996f (patch)
tree47bd007cc5d472db656a9b1888254790970c5b5a /apps/files_encryption/tests/util.php
parent3c100af1329c1c101f38f23f2d74710954387fdf (diff)
downloadnextcloud-server-04b0843bb4484695ec6c4fb060a4ae4b3e8a996f.tar.gz
nextcloud-server-04b0843bb4484695ec6c4fb060a4ae4b3e8a996f.zip
fixed some tests
Diffstat (limited to 'apps/files_encryption/tests/util.php')
-rwxr-xr-xapps/files_encryption/tests/util.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_encryption/tests/util.php b/apps/files_encryption/tests/util.php
index 0659b468a37..e3ec0860fa5 100755
--- a/apps/files_encryption/tests/util.php
+++ b/apps/files_encryption/tests/util.php
@@ -24,8 +24,6 @@ $loader->register();
use \Mockery as m;
use OCA\Encryption;
-\OC_User::login( 'admin', 'admin' );
-
class Test_Enc_Util extends \PHPUnit_Framework_TestCase {
function setUp() {
@@ -62,6 +60,10 @@ class Test_Enc_Util extends \PHPUnit_Framework_TestCase {
\OC\Files\Filesystem::init( $this->userId, '/' );
\OC\Files\Filesystem::mount( 'OC_Filestorage_Local', array('datadir' => $this->dataDir), '/' );
+ $params['uid'] = $this->userId;
+ $params['password'] = $this->pass;
+ OCA\Encryption\Hooks::login($params);
+
$mockView = m::mock('OC_FilesystemView');
$this->util = new Encryption\Util( $mockView, $this->userId );
@@ -75,6 +77,9 @@ class Test_Enc_Util extends \PHPUnit_Framework_TestCase {
/**
* @brief test that paths set during User construction are correct
+ *
+ *
+ *
*/
function testKeyPaths() {