diff options
author | Konrad Abicht <hi@inspirito.de> | 2021-02-12 13:01:37 +0100 |
---|---|---|
committer | Konrad Abicht <hi@inspirito.de> | 2021-02-12 13:01:37 +0100 |
commit | 330315f03e27c8a2c155229063eaef2050060485 (patch) | |
tree | 2009c0e00ea8ad335dfd5248e4dadd56a0e76ca6 /tests/Core/Service | |
parent | 0bc49d67cdc09da25e828848735e41abef12a157 (diff) | |
download | nextcloud-server-330315f03e27c8a2c155229063eaef2050060485.tar.gz nextcloud-server-330315f03e27c8a2c155229063eaef2050060485.zip |
refined name of getOpenSSLEncryptedAndPrivateKey
Signed-off-by: Konrad Abicht <hi@inspirito.de>
Diffstat (limited to 'tests/Core/Service')
-rw-r--r-- | tests/Core/Service/LoginFlowV2ServiceUnitTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Service/LoginFlowV2ServiceUnitTest.php b/tests/Core/Service/LoginFlowV2ServiceUnitTest.php index ba0a3130af7..233960ea97a 100644 --- a/tests/Core/Service/LoginFlowV2ServiceUnitTest.php +++ b/tests/Core/Service/LoginFlowV2ServiceUnitTest.php @@ -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); |