diff options
-rw-r--r-- | apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php b/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php index c788262231a..6640a1c0ebf 100644 --- a/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php +++ b/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php @@ -109,4 +109,13 @@ class BackupCodeMapperTest extends TestCase { $this->assertCount(0, $this->mapper->getBackupCodes($user)); } + public function testInsertArgonEncryptedCodes() { + $code = new BackupCode(); + $code->setUserId($this->testUID); + $code->setCode('2|$argon2i$v=19$m=1024,t=2,p=2$MjJWUjRFWndtMm5BWGxOag$BusVxLeFyiLLWtaVvX/JRFBiPdZcjRrzpQ/rAhn6vqY'); + $code->setUsed(1); + + $this->mapper->insert($code); + } + } |