good
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user