summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests
diff options
context:
space:
mode:
authorKenneth Newwood <kenneth@newwood.name>2017-09-11 12:52:25 +0200
committerKenneth Newwood <kenneth@newwood.name>2017-09-11 12:52:25 +0200
commit7092c50e7c514e795c07be734f105fcbc6f9d21d (patch)
tree4b036b3824b94f6ad77867485f116124067d0965 /apps/encryption/tests
parent316c7e18bc8a3475616a88eca4332309a8789b0c (diff)
downloadnextcloud-server-7092c50e7c514e795c07be734f105fcbc6f9d21d.tar.gz
nextcloud-server-7092c50e7c514e795c07be734f105fcbc6f9d21d.zip
print generated encryption key passwords directly after generating the keys so that errors during the encryption do not lead to a potentially massive data loss
Signed-off-by: Kenneth Newwood <kenneth@newwood.name>
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r--apps/encryption/tests/Crypto/EncryptAllTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php
index 6c279a54f57..df8401c15b2 100644
--- a/apps/encryption/tests/Crypto/EncryptAllTest.php
+++ b/apps/encryption/tests/Crypto/EncryptAllTest.php
@@ -149,8 +149,8 @@ class EncryptAllTest extends TestCase {
$this->util->expects($this->any())->method('isMasterKeyEnabled')->willReturn(false);
$encryptAll->expects($this->at(0))->method('createKeyPairs')->with();
- $encryptAll->expects($this->at(1))->method('encryptAllUsersFiles')->with();
- $encryptAll->expects($this->at(2))->method('outputPasswords')->with();
+ $encryptAll->expects($this->at(1))->method('outputPasswords')->with();
+ $encryptAll->expects($this->at(2))->method('encryptAllUsersFiles')->with();
$encryptAll->encryptAll($this->inputInterface, $this->outputInterface);