Add an integration test that inserts long back codes values

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2018-08-21 06:49:26 +02:00
parent be3438ca97
commit 42035cab9d
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 9 additions and 0 deletions

View File

@ -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);
}
}