Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 81098e8

Browse files
committed
Move test to the correct class
1 parent c4f1da0 commit 81098e8

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

test/CollectionInputFilterTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ public function dataNestingCollection()
723723
'count' => null,
724724
'isValid' => true
725725
],
726+
'count=0' => [
727+
'count' => 0,
728+
'isValid' => true
729+
],
726730
'count = 1' => [
727731
'count' => 1,
728732
'isValid' => true

test/InputFilterTest.php

-27
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,6 @@ public function testGetValueReturnsArrayIfNestedInputFilters()
6868
$this->assertInternalType('array', $this->inputFilter->getValue('people'));
6969
}
7070

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-
9871
public function inputProvider()
9972
{
10073
$dataSets = parent::inputProvider();

0 commit comments

Comments
 (0)