]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing unit test execution - test dummy module was behaving wrong
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 3 Apr 2015 09:42:25 +0000 (11:42 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:31 +0000 (13:30 +0200)
tests/lib/files/storage/wrapper/encryption.php
tests/lib/files/stream/encryption.php

index 41bd2f849965a1deead4540bfcf6afe708927345..e25002eee2e8f77bd3523c250abb629a7438a49b 100644 (file)
@@ -78,7 +78,7 @@ class Encryption extends \Test\Files\Storage\Storage {
                $encryptionModule->expects($this->any())->method('update')->willReturn(true);
                $encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
                $encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
-               $encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(6126);
+               $encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(8192);
                return $encryptionModule;
        }
 
index 3e30385dfef120b4245f913c478e8c8824adfbf3..84156337ad72f9e81525a99c4ba62781b8636065 100644 (file)
@@ -98,7 +98,7 @@ class Encryption extends \Test\TestCase {
                $encryptionModule->expects($this->any())->method('update')->willReturn(true);
                $encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
                $encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
-               $encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(6126);
+               $encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(8192);
                return $encryptionModule;
        }
 }