completed story 1.1 with QA tests and fixes
This commit is contained in:
@@ -23,10 +23,10 @@ test('two factor challenge can be rendered', function () {
|
||||
'confirmPassword' => true,
|
||||
]);
|
||||
|
||||
$user = User::factory()->create();
|
||||
$user = User::factory()->withTwoFactor()->create();
|
||||
|
||||
$this->post(route('login.store'), [
|
||||
'email' => $user->email,
|
||||
'password' => 'password',
|
||||
])->assertRedirect(route('two-factor.login'));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user