Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AnourValar committed Oct 10, 2024
1 parent df92918 commit f2b7ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tests/ValidationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ protected function assertCustomValidationFailed(callable $closure, $message = tr
} catch (\Illuminate\Validation\ValidationException $e) {
foreach ($e->validator->errors()->all() as $error) {
$this->assertStringNotContainsString('services/', $error);
$this->assertStringNotContainsString('entities/', $error);
$this->assertStringNotContainsString('models/', $error);
$this->assertStringNotContainsString('controllers/', $error);
if ($message !== true) {
$this->assertEquals($message, $error);
}
Expand Down

0 comments on commit f2b7ed8

Please sign in to comment.