We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e267d commit ce1247dCopy full SHA for ce1247d
1 file changed
tests/system/Helpers/FormHelperTest.php
@@ -999,7 +999,16 @@ public function testValidationShowError()
999
public function testValidationShowErrorForWildcards()
1000
{
1001
$validation = Services::validation();
1002
- $validation->setRule('user.0.name', 'Name', 'required')->run([]);
+ $validation->setRule('user.*.name', 'Name', 'required')
1003
+ ->run([
1004
+ 'user' => [
1005
+ 'friends' => [
1006
+ ['name' => 'Name1'],
1007
+ ['name' => ''],
1008
+ ['name' => 'Name2'],
1009
+ ]
1010
1011
+ ]);
1012
1013
$html = validation_show_error('user.*.name');
1014
0 commit comments