diff --git a/tests/ValidatorTest.php b/tests/ValidatorTest.php index fb09cda..2a51838 100644 --- a/tests/ValidatorTest.php +++ b/tests/ValidatorTest.php @@ -42,7 +42,7 @@ $errors = $validation->errors(); expect(true)->toBe($validation->fails(true)); expect($errors)->toBeArray(); - expect($errors)->toHaveCount(4); + expect($errors)->toHaveCount(422); expect($errors)->toHaveKeys(['last_name', 'age', 'email', 'confirm_password']); expect($errors)->toBe([ 'last_name' => ['The Last Name field is required'],