diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-03-09 19:18:34 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-03-09 19:18:34 +0100 |
commit | c1f1fbda08b464b286e309283ed81d16f30a5ca6 (patch) | |
tree | afbf2dbd61869eda09f438c083f13bdec47c70cc /apps/files_encryption/test | |
parent | f2b86d0227d080dd4395efaf5fb086b024af0c95 (diff) | |
download | nextcloud-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-x | apps/files_encryption/test/crypt.php | 6 |
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 ) ); } |