aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/test
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-03-09 19:18:34 +0100
committerSam Tuke <samtuke@owncloud.com>2013-03-09 19:18:34 +0100
commitc1f1fbda08b464b286e309283ed81d16f30a5ca6 (patch)
treeafbf2dbd61869eda09f438c083f13bdec47c70cc /apps/files_encryption/test
parentf2b86d0227d080dd4395efaf5fb086b024af0c95 (diff)
downloadnextcloud-server-c1f1fbda08b464b286e309283ed81d16f30a5ca6.tar.gz
nextcloud-server-c1f1fbda08b464b286e309283ed81d16f30a5ca6.zip
Fixed stream wrapper bugs
Switched encryptAll() to use stream-based instead of file-at-a-time encryption Development snapshot
Diffstat (limited to 'apps/files_encryption/test')
-rwxr-xr-xapps/files_encryption/test/crypt.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/test/crypt.php b/apps/files_encryption/test/crypt.php
index 48ad2ee0075..b02e63b2ffc 100755
--- a/apps/files_encryption/test/crypt.php
+++ b/apps/files_encryption/test/crypt.php
@@ -416,13 +416,13 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
function testIsEncryptedContent() {
- $this->assertFalse( Encryption\Crypt::isCatfile( $this->dataUrl ) );
+ $this->assertFalse( Encryption\Crypt::isCatfileContent( $this->dataUrl ) );
- $this->assertFalse( Encryption\Crypt::isCatfile( $this->legacyEncryptedData ) );
+ $this->assertFalse( Encryption\Crypt::isCatfileContent( $this->legacyEncryptedData ) );
$keyfileContent = Encryption\Crypt::symmetricEncryptFileContent( $this->dataUrl, 'hat' );
- $this->assertTrue( Encryption\Crypt::isCatfile( $keyfileContent ) );
+ $this->assertTrue( Encryption\Crypt::isCatfileContent( $keyfileContent ) );
}