encrypt($decrypted); $this->assertNotEquals($encrypted, $result); } /** * @dataProvider getCryptData */ public function testDecrypt(string $key, string $encrypted, string $decrypted) { $crypt = new \Magento\Framework\Encryption\Adapter\SodiumChachaIetf($key); $result = $crypt->decrypt($encrypted); $this->assertEquals($decrypted, $result); } }