]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix broken tests
authorFlorin Peter <github@florin-peter.de>
Fri, 31 May 2013 18:55:05 +0000 (20:55 +0200)
committerFlorin Peter <github@florin-peter.de>
Fri, 31 May 2013 18:55:05 +0000 (20:55 +0200)
apps/files_encryption/tests/share.php

index 6d92881ceb0a5e50df1489b34e80cb73a71bafc6..816bc709f26df3a2f760152506626c16cc6b1cca 100755 (executable)
@@ -534,7 +534,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase {
                // some hacking to simulate public link
                $GLOBALS['app'] = 'files_sharing';
                $GLOBALS['fileOwner'] = \Test_Encryption_Share::TEST_ENCRYPTION_SHARE_USER1;
-               \OC_User::setUserId('');
+               \OC_User::setUserId(false);
 
                // get file contents
                $retrievedCryptedFile = file_get_contents('crypt://' . $this->filename);