diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-07-27 13:28:44 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-08-14 07:58:41 +0200 |
commit | 00e62171d22a65c552aaff85a61f38cae6166d15 (patch) | |
tree | 97d047bcb0312dee6ba1a926490a06884055f837 /apps/encryption/tests/Users/SetupTest.php | |
parent | 36cfdd320bd766798930dc09acea74b27f58d95c (diff) | |
download | nextcloud-server-00e62171d22a65c552aaff85a61f38cae6166d15.tar.gz nextcloud-server-00e62171d22a65c552aaff85a61f38cae6166d15.zip |
Test for locking state in key generation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/encryption/tests/Users/SetupTest.php')
-rw-r--r-- | apps/encryption/tests/Users/SetupTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/tests/Users/SetupTest.php b/apps/encryption/tests/Users/SetupTest.php index 779bb5d82ea..76c4647f774 100644 --- a/apps/encryption/tests/Users/SetupTest.php +++ b/apps/encryption/tests/Users/SetupTest.php @@ -90,9 +90,9 @@ class SetupTest extends TestCase { if ($hasKeys) { $this->keyManagerMock->expects($this->never())->method('storeKeyPair'); } else { - $this->cryptMock->expects($this->once())->method('createKeyPair')->willReturn('keyPair'); + $this->cryptMock->expects($this->once())->method('createKeyPair')->willReturn(['publicKey' => 'publicKey', 'privateKey' => 'privateKey']); $this->keyManagerMock->expects($this->once())->method('storeKeyPair') - ->with('uid', 'password', 'keyPair')->willReturn(true); + ->with('uid', 'password', ['publicKey' => 'publicKey', 'privateKey' => 'privateKey'])->willReturn(true); } $this->assertSame($expected, |