create new register route(Laravel) , create new email successfully verified route(Vue)

This commit is contained in:
Milos Holba
2021-05-22 19:36:02 +02:00
parent a7e26cb61f
commit 4d078dc24a
12 changed files with 180 additions and 12 deletions

View File

@@ -65,7 +65,7 @@ class AuthTest extends TestCase
]);
});
$this->postJson('/register', [
$this->postJson('api/register', [
'email' => 'john@doe.com',
'password' => 'SecretPassword',
'password_confirmation' => 'SecretPassword',

View File

@@ -279,7 +279,7 @@ class UserAccountTest extends TestCase
$response = $this->getJson($verificationUrl);
$response->assertRedirect('sign-in');
$response->assertRedirect('successfully-verified');
$this->assertNotNull(User::find($user->id)->get('email_verified_at'));
}