Skip to content

Commit

Permalink
Test invalid google2fa codes
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro authored and ifox committed Nov 18, 2019
1 parent c86b970 commit 90898bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/integration/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ public function testGoogle2FA()
$crawler->getContent()
);

$crawler = $this->followingRedirects()->call(
'POST',
'/twill/login-2fa',
[
'verify-code' => 'INVALID CODE',
]
);

$this->assertStringContainsString(
'Your one time password is invalid.',
$crawler->getContent()
);

$crawler = $this->followingRedirects()->call(
'POST',
'/twill/login-2fa',
Expand Down

0 comments on commit 90898bb

Please sign in to comment.