Add an integration test that inserts long back codes values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
be3438ca97
commit
42035cab9d
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue