mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: add test for if_exist and array data
This commit is contained in:
parent
cf0e87d56e
commit
33477f8d4e
@ -100,6 +100,12 @@ class RulesTest extends CIUnitTestCase
|
||||
['foo' => ''],
|
||||
false,
|
||||
],
|
||||
// Invalid array input
|
||||
[
|
||||
['foo' => 'if_exist|alpha'],
|
||||
['foo' => ['bar' => '12345']],
|
||||
false,
|
||||
],
|
||||
// Input data does not exist then the other rules will be ignored
|
||||
[
|
||||
['foo' => 'if_exist|required'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user