Skip to content

Commit

Permalink
Merge pull request #2767 from musmanikram/2757-uncomment-tests
Browse files Browse the repository at this point in the history
Uncommented tests, mistake in my previous PR :(
  • Loading branch information
MGatner authored Mar 30, 2020
2 parents 1baa3e0 + 964ef06 commit 2a40c22
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/system/Validation/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ public function testRulesForArrayField($body, $rules, $results)
public function arrayFieldDataProvider()
{
return [
'all_rules_should_pass' => [
'all_rules_should_pass' => [
'body' => [
'foo' => [
'a',
Expand All @@ -683,41 +683,41 @@ public function arrayFieldDataProvider()
],
'results' => [],
],
/*'first_field_will_return_required_error' => [
'body' => [
'first_field_will_return_required_error' => [
'body' => [
'foo' => [
'',
'b',
'c'
]
'c',
],
],
'rules' => [
'rules' => [
'foo.0' => 'required|alpha|max_length[2]',
'foo.1' => 'required|alpha|max_length[2]',
'foo.2' => 'required|alpha|max_length[2]'
'foo.2' => 'required|alpha|max_length[2]',
],
'results' => [
'foo.0' => 'The foo.0 field is required.'
]
'foo.0' => 'The foo.0 field is required.',
],
],
'first_and second_field_will_return_required_and_min_length_error' => [
'body' => [
'body' => [
'foo' => [
'',
'b',
'c'
]
'c',
],
],
'rules' => [
'rules' => [
'foo.0' => 'required|alpha|max_length[2]',
'foo.1' => 'required|alpha|min_length[2]|max_length[4]',
'foo.2' => 'required|alpha|max_length[2]'
'foo.2' => 'required|alpha|max_length[2]',
],
'results' => [
'foo.0' => 'The foo.0 field is required.',
'foo.1' => 'The foo.1 field must be at least 2 characters in length.',
]
]*/
],
],
];
}

Expand Down

0 comments on commit 2a40c22

Please sign in to comment.