diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/HirdTest.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/HirdTest.php b/tests/HirdTest.php index 35f4895..8083562 100644 --- a/tests/HirdTest.php +++ b/tests/HirdTest.php @@ -94,12 +94,8 @@ test('Validate using a overwritten field name', function () { $fieldNames = ['date' => 'Date']; $rules = ['date' => 'date-format:Y-m-d H:i:s']; - $hird = new Hird( - fields: $fields, - rules: $rules, - fieldNames: $fieldNames - ); - + $hird = new Hird($fields, $rules); + $hird->setFieldNames($fieldNames); $hird->fails(); expect($hird->errors())->toBe([ |
