test: remove dynamic property

This commit is contained in:
kenjis 2022-10-12 09:54:10 +09:00
parent 42842d15f6
commit fd95b61045
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -238,15 +238,15 @@ final class ValidationModelTest extends LiveModelTestCase
public function testValidationWithGroupName(): void
{
$config = new Validation();
$config->grouptest = [
'name' => [
'required',
'min_length[3]',
],
'token' => 'in_list[{id}]',
];
$config = new class () extends Validation {
public $grouptest = [
'name' => [
'required',
'min_length[3]',
],
'token' => 'in_list[{id}]',
];
};
$data = [
'name' => 'abc',