We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42842d1 commit fd95b61Copy full SHA for fd95b61
1 file changed
tests/system/Models/ValidationModelTest.php
@@ -238,15 +238,15 @@ public function testValidationPassesWithMissingFields(): void
238
239
public function testValidationWithGroupName(): void
240
{
241
- $config = new Validation();
242
-
243
- $config->grouptest = [
244
- 'name' => [
245
- 'required',
246
- 'min_length[3]',
247
- ],
248
- 'token' => 'in_list[{id}]',
249
- ];
+ $config = new class () extends Validation {
+ public $grouptest = [
+ 'name' => [
+ 'required',
+ 'min_length[3]',
+ ],
+ 'token' => 'in_list[{id}]',
+ ];
+ };
250
251
$data = [
252
'name' => 'abc',
0 commit comments