fix(Security): Adjust test to exception text change

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
Josh Richards 2024-06-27 11:25:10 -04:00
parent bf7aee3310
commit bc16636653

View file

@ -65,7 +65,7 @@ class CryptoTest extends \Test\TestCase {
public function testWrongParameters() {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Authenticated ciphertext could not be decoded.');
$this->expectExceptionMessage('Authenticated ciphertext could not be decoded (invalid format).');
$encryptedString = '1|2';
$this->crypto->decrypt($encryptedString, 'ThisIsAVeryS3cur3P4ssw0rd');