fix(models): correct UserSetting import namespace and add test coverage
This commit is contained in:
@@ -55,4 +55,13 @@ class EmailVerificationTest extends TestCase
|
||||
|
||||
$this->assertFalse($user->fresh()->hasVerifiedEmail());
|
||||
}
|
||||
|
||||
public function test_verified_user_is_redirected_from_prompt(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->actingAs($user)->get('/verify-email');
|
||||
|
||||
$response->assertRedirect(route('dashboard', absolute: false));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user