Browse Source

refined name of getOpenSSLEncryptedAndPrivateKey

Signed-off-by: Konrad Abicht <hi@inspirito.de>
tags/v22.0.0beta1
Konrad Abicht 3 years ago
parent
commit
330315f03e
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tests/Core/Service/LoginFlowV2ServiceUnitTest.php

+ 3
- 3
tests/Core/Service/LoginFlowV2ServiceUnitTest.php View File

@@ -116,7 +116,7 @@ class LoginFlowV2ServiceUnitTest extends TestCase {
*
* @return array Array contains encrypted password, private key and public key.
*/
private function getOpenSSLEncryptedAndPrivateKey(string $appPassword): array {
private function getOpenSSLEncryptedPublicAndPrivateKey(string $appPassword): array {
// Create the private and public key
$res = openssl_pkey_new([
'digest_alg' => 'md5', // take fast algorithm for testing purposes
@@ -181,7 +181,7 @@ class LoginFlowV2ServiceUnitTest extends TestCase {
}

public function testPollRemoveDataFromDb() {
list($encrypted, $privateKey) = $this->getOpenSSLEncryptedAndPrivateKey('test_pass');
list($encrypted, $privateKey) = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');

$this->crypto->expects($this->once())
->method('decrypt')
@@ -295,7 +295,7 @@ class LoginFlowV2ServiceUnitTest extends TestCase {
*/

public function testFlowDone() {
list(,, $publicKey) = $this->getOpenSSLEncryptedAndPrivateKey('test_pass');
list(,, $publicKey) = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');

$loginFlowV2 = new LoginFlowV2();
$loginFlowV2->setPublicKey($publicKey);

Loading…
Cancel
Save