Skip to content

Commit fd95b61

Browse files
committed
test: remove dynamic property
1 parent 42842d1 commit fd95b61

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/system/Models/ValidationModelTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ public function testValidationPassesWithMissingFields(): void
238238

239239
public function testValidationWithGroupName(): void
240240
{
241-
$config = new Validation();
242-
243-
$config->grouptest = [
244-
'name' => [
245-
'required',
246-
'min_length[3]',
247-
],
248-
'token' => 'in_list[{id}]',
249-
];
241+
$config = new class () extends Validation {
242+
public $grouptest = [
243+
'name' => [
244+
'required',
245+
'min_length[3]',
246+
],
247+
'token' => 'in_list[{id}]',
248+
];
249+
};
250250

251251
$data = [
252252
'name' => 'abc',

0 commit comments

Comments
 (0)