Skip to content

Commit 33477f8

Browse files
committed
test: add test for if_exist and array data
1 parent cf0e87d commit 33477f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/system/Validation/RulesTest.php

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ public static function provideIfExist(): iterable
100100
['foo' => ''],
101101
false,
102102
],
103+
// Invalid array input
104+
[
105+
['foo' => 'if_exist|alpha'],
106+
['foo' => ['bar' => '12345']],
107+
false,
108+
],
103109
// Input data does not exist then the other rules will be ignored
104110
[
105111
['foo' => 'if_exist|required'],

0 commit comments

Comments
 (0)