good
This commit is contained in:
1 parent
e66ce8fdcd
commit
b4b72fa25c
3 files changed
+101
-3
No files matched your search
@@ -146,6 +146,14 @@ public function test_congratulations_recovers_coupon_from_device_cookie(): void
|
||||
->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