feat: translations
This commit is contained in:
@@ -50,7 +50,7 @@ it('verifies a user from a signed email link', function () {
|
||||
|
||||
$this->getJson($url)
|
||||
->assertOk()
|
||||
->assertJsonPath('message', 'Compte vérifié avec succès.')
|
||||
->assertJsonPath('message', __('api.auth.verified'))
|
||||
->assertJsonPath('user.emailVerified', true);
|
||||
|
||||
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
|
||||
@@ -78,7 +78,7 @@ it('blocks login for unverified users', function () {
|
||||
'password' => 'password',
|
||||
])
|
||||
->assertForbidden()
|
||||
->assertJsonPath('message', 'Vérifie ton adresse email avant de te connecter.')
|
||||
->assertJsonPath('message', __('api.auth.email_not_verified'))
|
||||
->assertCookieMissing('token');
|
||||
|
||||
$this->assertDatabaseMissing('personal_access_tokens', [
|
||||
@@ -109,7 +109,7 @@ it('resends a verification email for an authenticated unverified user', function
|
||||
|
||||
$this->postJson('/api/auth/email/verification-notification')
|
||||
->assertOk()
|
||||
->assertJsonPath('message', 'Email de vérification envoyé.');
|
||||
->assertJsonPath('message', __('api.auth.verification_sent'));
|
||||
|
||||
Notification::assertSentTo($user, VerifyEmail::class);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user