auth work
This commit is contained in:
@@ -25,8 +25,8 @@ test('invalid credential return an error', function () {
|
||||
])
|
||||
->assertStatus(422)
|
||||
->assertJson([
|
||||
'message' => 'Invalid credentials.',
|
||||
'errors' => ['form_info' => 'Invalid credentials.'],
|
||||
'message' => 'Identifiant ou mot de passe incorrect.',
|
||||
'errors' => ['form_info' => 'Identifiant ou mot de passe incorrect.'],
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -201,8 +201,8 @@ test('reset action need specific credentials', function () {
|
||||
])
|
||||
->assertStatus(422)
|
||||
->assertJson([
|
||||
'message' => 'The selected token is invalid.',
|
||||
'errors' => ['token' => ['The selected token is invalid.']],
|
||||
'message' => 'Le champ token est invalide.',
|
||||
'errors' => ['token' => ['Le champ token est invalide.']],
|
||||
]);
|
||||
|
||||
DB::table('password_reset_tokens')
|
||||
@@ -221,7 +221,7 @@ test('reset action need specific credentials', function () {
|
||||
])
|
||||
->assertStatus(422)
|
||||
->assertJson([
|
||||
'message' => 'Invalid credentials.',
|
||||
'errors' => ['form_info' => 'Invalid credentials.'],
|
||||
'message' => 'Identifiant ou mot de passe incorrect.',
|
||||
'errors' => ['form_info' => 'Identifiant ou mot de passe incorrect.'],
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user