mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #7511 from kenjis/test-fix-model-validation-placeholder
test: fix Model Validation tests
This commit is contained in:
commit
2c9f381c15
@ -24,6 +24,7 @@ class ValidErrorsModel extends Model
|
||||
'description',
|
||||
];
|
||||
protected $validationRules = [
|
||||
'id' => 'permit_empty|is_natural_no_zero',
|
||||
'name' => [
|
||||
'required',
|
||||
'min_length[10]',
|
||||
|
@ -24,6 +24,7 @@ class ValidModel extends Model
|
||||
'description',
|
||||
];
|
||||
protected $validationRules = [
|
||||
'id' => 'permit_empty|is_natural_no_zero',
|
||||
'name' => [
|
||||
'required',
|
||||
'min_length[3]',
|
||||
|
@ -242,6 +242,7 @@ final class ValidationModelTest extends LiveModelTestCase
|
||||
{
|
||||
$config = new class () extends Validation {
|
||||
public $grouptest = [
|
||||
'id' => 'is_natural_no_zero',
|
||||
'name' => [
|
||||
'required',
|
||||
'min_length[3]',
|
||||
|
Loading…
x
Reference in New Issue
Block a user