Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AnourValar committed Aug 8, 2023
1 parent f623f39 commit 93e25b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tests/ValidationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ protected function assertValidationSuccess(\Illuminate\Database\Eloquent\Model $

return tap($model);
} catch (\Illuminate\Validation\ValidationException $e) {
$this->assertFalse(true, 'Validation failed: ' . json_encode($e->validator->errors()->toArray()));
$this->assertFalse(
true,
'Validation failed: ' . json_encode($e->validator->errors()->toArray(), JSON_UNESCAPED_UNICODE)
);
throw $e;
}
}
Expand Down

0 comments on commit 93e25b8

Please sign in to comment.