From 5a2fef43095d7a303041b6ffff7197c7af8e698d Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Fri, 15 Aug 2014 15:37:16 +0200
Subject: [PATCH] login as user1 before performing a test

---
 apps/files_encryption/tests/crypt.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_encryption/tests/crypt.php b/apps/files_encryption/tests/crypt.php
index 5eb9580e3b..1bebb3cd36 100755
--- a/apps/files_encryption/tests/crypt.php
+++ b/apps/files_encryption/tests/crypt.php
@@ -61,7 +61,7 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase {
 
 	function setUp() {
 		// set user id
-		\OC_User::setUserId(\Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_USER1);
+		\Test_Encryption_Util::loginHelper(\Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_USER1);
 		$this->userId = \Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_USER1;
 		$this->pass = \Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_USER1;
 
-- 
GitLab