mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: remove dynamic property
This commit is contained in:
parent
42842d15f6
commit
fd95b61045
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user