diff options
| author | Asko Nõmm <asko@repl.ee> | 2023-09-25 20:46:58 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@repl.ee> | 2023-09-25 20:46:58 +0300 |
| commit | 641826a5a408b00a6adb04847d178925bbe0e574 (patch) | |
| tree | abb59e1a92181b009654fd05769d6157bedff93a /tests/HirdTest.php | |
| parent | 57518b03cbf19b8a714d6fcb573f71cb921005e3 (diff) | |
Improve API
Diffstat (limited to 'tests/HirdTest.php')
| -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([ |
