Skip to content

Commit 2c9f381

Browse files
authored
Merge pull request #7511 from kenjis/test-fix-model-validation-placeholder
test: fix Model Validation tests
2 parents 6af6771 + 6234eb3 commit 2c9f381

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/_support/Models/ValidErrorsModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ValidErrorsModel extends Model
2424
'description',
2525
];
2626
protected $validationRules = [
27+
'id' => 'permit_empty|is_natural_no_zero',
2728
'name' => [
2829
'required',
2930
'min_length[10]',

tests/_support/Models/ValidModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ValidModel extends Model
2424
'description',
2525
];
2626
protected $validationRules = [
27+
'id' => 'permit_empty|is_natural_no_zero',
2728
'name' => [
2829
'required',
2930
'min_length[3]',

tests/system/Models/ValidationModelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public function testValidationWithGroupName(): void
242242
{
243243
$config = new class () extends Validation {
244244
public $grouptest = [
245+
'id' => 'is_natural_no_zero',
245246
'name' => [
246247
'required',
247248
'min_length[3]',

0 commit comments

Comments
 (0)