Skip to content

Commit 79a9e2e

Browse files
committed
AC-8017 system settings improvement
1 parent 9be4ba4 commit 79a9e2e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dev/tests/integration/testsuite/Magento/EncryptionKey/Setup/Patch/Data/SodiumChachaPatchTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Magento\Framework\App\DeploymentConfig;
1414
use Magento\Framework\Encryption\Encryptor;
1515

16+
/**
17+
* Class SodiumChachaPatch library test
18+
*/
1619
class SodiumChachaPatchTest extends \PHPUnit\Framework\TestCase
1720
{
1821
private const PATH_KEY = 'crypt/key';
@@ -103,6 +106,13 @@ private function legacyEncrypt(string $data): string
103106
return '0:' . Encryptor::CIPHER_RIJNDAEL_256 . ':' . base64_encode($encrpted);
104107
}
105108

109+
/**
110+
* Get Encryption key
111+
*
112+
* @return string
113+
* @throws \Magento\Framework\Exception\FileSystemException
114+
* @throws \Magento\Framework\Exception\RuntimeException
115+
*/
106116
private function getEncryptionKey(): string
107117
{
108118
$key = $this->deployConfig->get(static::PATH_KEY);

0 commit comments

Comments
 (0)