This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree 2 files changed +4
-27
lines changed
2 files changed +4
-27
lines changed Original file line number Diff line number Diff line change @@ -723,6 +723,10 @@ public function dataNestingCollection()
723
723
'count ' => null ,
724
724
'isValid ' => true
725
725
],
726
+ 'count=0 ' => [
727
+ 'count ' => 0 ,
728
+ 'isValid ' => true
729
+ ],
726
730
'count = 1 ' => [
727
731
'count ' => 1 ,
728
732
'isValid ' => true
Original file line number Diff line number Diff line change @@ -68,33 +68,6 @@ public function testGetValueReturnsArrayIfNestedInputFilters()
68
68
$ this ->assertInternalType ('array ' , $ this ->inputFilter ->getValue ('people ' ));
69
69
}
70
70
71
- /**
72
- * @group ZF2-5648
73
- */
74
- public function testCountZeroValidateInternalInputWithCollectionInputFilter ()
75
- {
76
- $ inputFilter = new InputFilter ();
77
- $ inputFilter ->add (new Input (), 'name ' );
78
-
79
- $ collection = new CollectionInputFilter ();
80
- $ collection ->setInputFilter ($ inputFilter );
81
- $ collection ->setCount (0 );
82
-
83
- $ this ->inputFilter ->add ($ collection , 'people ' );
84
-
85
- $ data = [
86
- 'people ' => [
87
- [
88
- 'name ' => 'Wanderson ' ,
89
- ],
90
- ],
91
- ];
92
- $ this ->inputFilter ->setData ($ data );
93
-
94
- $ this ->assertTrue ($ this ->inputFilter ->isvalid ());
95
- $ this ->assertSame ($ data , $ this ->inputFilter ->getValues ());
96
- }
97
-
98
71
public function inputProvider ()
99
72
{
100
73
$ dataSets = parent ::inputProvider ();
You can’t perform that action at this time.
0 commit comments