From: Florin Peter Date: Fri, 31 May 2013 18:55:05 +0000 (+0200) Subject: fix broken tests X-Git-Tag: v6.0.0alpha2~688^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d85a10ebc544455b55f0ba86bc3d8f7bcd4187ee;p=nextcloud-server.git fix broken tests --- diff --git a/apps/files_encryption/tests/share.php b/apps/files_encryption/tests/share.php index 6d92881ceb0..816bc709f26 100755 --- a/apps/files_encryption/tests/share.php +++ b/apps/files_encryption/tests/share.php @@ -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);