This commit is contained in:
Mekan1206
2026-05-19 21:26:12 +05:00
parent e66ce8fdcd
commit b4b72fa25c
3 changed files with 101 additions and 3 deletions

View File

@@ -146,6 +146,14 @@ class VerificationFlowTest extends TestCase
->assertSee($coupon->code);
}
public function test_congratulations_redirects_when_session_coupon_missing_from_db(): void
{
$this->withSession(['coupon_code' => '9_STALE'])
->get(route('verification.congratulations'))
->assertRedirect(route('verification.index'))
->assertSessionMissing('coupon_code');
}
public function test_send_otp_is_rate_limited(): void
{
for ($i = 0; $i < 3; $i++) {