summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAsko Nõmm <asko@repl.ee>2023-09-25 20:46:58 +0300
committerAsko Nõmm <asko@repl.ee>2023-09-25 20:46:58 +0300
commit641826a5a408b00a6adb04847d178925bbe0e574 (patch)
treeabb59e1a92181b009654fd05769d6157bedff93a /tests
parent57518b03cbf19b8a714d6fcb573f71cb921005e3 (diff)
Improve API
Diffstat (limited to 'tests')
-rw-r--r--tests/HirdTest.php8
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([