]> source.dussan.org Git - nextcloud-server.git/commitdiff
login as user1 before performing a test
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 15 Aug 2014 13:37:16 +0000 (15:37 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 15 Aug 2014 13:48:44 +0000 (15:48 +0200)
apps/files_encryption/tests/crypt.php

index 5eb9580e3b40adb24ae069e64d8695559ceeaaab..1bebb3cd36c68db34caa1ceea6c91a42ded94bd9 100755 (executable)
@@ -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;