Skip to content

Commit ce1247d

Browse files
committed
applied code review suggestion
1 parent 09e267d commit ce1247d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

tests/system/Helpers/FormHelperTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,16 @@ public function testValidationShowError()
999999
public function testValidationShowErrorForWildcards()
10001000
{
10011001
$validation = Services::validation();
1002-
$validation->setRule('user.0.name', 'Name', 'required')->run([]);
1002+
$validation->setRule('user.*.name', 'Name', 'required')
1003+
->run([
1004+
'user' => [
1005+
'friends' => [
1006+
['name' => 'Name1'],
1007+
['name' => ''],
1008+
['name' => 'Name2'],
1009+
]
1010+
]
1011+
]);
10031012

10041013
$html = validation_show_error('user.*.name');
10051014

0 commit comments

Comments
 (0)