File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1414,13 +1414,20 @@ public function testNestedArrayThrowsException(): void
14141414 'credit_amount ' => null ,
14151415 'purpose ' => 'A ' ,
14161416 ],
1417+ 'account_3 ' => [
1418+ 'account_number ' => '' ,
1419+ 'credit_amount ' => 2000 ,
1420+ 'purpose ' => '' ,
1421+ ],
14171422 ],
14181423 ];
14191424 $ this ->validation ->run ($ data );
14201425
14211426 $ this ->assertSame ([
1422- 'beneficiaries_accounts.account_2.credit_amount ' => 'The CREDIT AMOUNT field is required. ' ,
1423- 'beneficiaries_accounts.account_2.purpose ' => 'The PURPOSE field must be at least 3 characters in length. ' ,
1427+ 'beneficiaries_accounts.account_3.account_number ' => 'The BENEFICIARY ACCOUNT NUMBER field must be exactly 5 characters in length. ' ,
1428+ 'beneficiaries_accounts.account_2.credit_amount ' => 'The CREDIT AMOUNT field is required. ' ,
1429+ 'beneficiaries_accounts.account_2.purpose ' => 'The PURPOSE field must be at least 3 characters in length. ' ,
1430+ 'beneficiaries_accounts.account_3.purpose ' => 'The PURPOSE field is required when BENEFICIARY ACCOUNT NUMBER is not present. ' ,
14241431 ], $ this ->validation ->getErrors ());
14251432 }
14261433
You can’t perform that action at this time.
0 commit comments