We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9aaec commit 878af3cCopy full SHA for 878af3c
tests/PHPUnit/Doctrine/ValueEncrypterTest.php
@@ -43,7 +43,12 @@ public function testEncryptWithMCryptEncryptedString(string $value): void
43
{
44
$mcrypt = $this->registry->getEncryptionManager(Rijndael256MCryptEncryptionAdapter::getCode());
45
46
- $mcrypt->encryptString($value);
+ $encryptedString = $mcrypt->encryptString($value);
47
+ $encryptedStringWithSodium = $this->registry->getEncryptionManager(XChaChaPolySodiumEncryptionAdapter::getCode());
48
+ $decryptedValue = $this->encrypter->decrypt($encryptedString);
49
+
50
+ $this->assertEquals($value, $decryptedValue);
51
+ $this->assertNotEquals($encryptedStringWithSodium, $decryptedValue);
52
}
53
54
protected function setUp(string $defaultAdapterCode = null): void
0 commit comments