File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
dev/tests/integration/testsuite/Magento/EncryptionKey/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1313use Magento \Framework \App \DeploymentConfig ;
1414use Magento \Framework \Encryption \Encryptor ;
1515
16+ /**
17+ * Class SodiumChachaPatch library test
18+ */
1619class 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 );
You can’t perform that action at this time.
0 commit comments