-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
ArrayInput specific logic branch its not longer present and current Input tests are enough
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -15,7 +15,6 @@ | |||||||
use PHPUnit_Framework_MockObject_MockObject as MockObject; | ||||||||
use PHPUnit_Framework_TestCase as TestCase; | ||||||||
use stdClass; | ||||||||
use Zend\InputFilter\ArrayInput; | ||||||||
use Zend\InputFilter\BaseInputFilter; | ||||||||
use Zend\InputFilter\Exception\InvalidArgumentException; | ||||||||
use Zend\InputFilter\Exception\RuntimeException; | ||||||||
|
@@ -556,22 +555,6 @@ public function testAddingExistingInputWillMergeIntoExisting() | |||||||
$this->assertFalse($filter->get('foo')->isRequired()); | ||||||||
} | ||||||||
|
||||||||
/** | ||||||||
* @group 5638 | ||||||||
*/ | ||||||||
public function testPopulateSupportsArrayInputEvenIfDataMissing() | ||||||||
{ | ||||||||
/** @var ArrayInput|MockObject $arrayInput */ | ||||||||
$arrayInput = $this->getMock(ArrayInput::class); | ||||||||
$arrayInput | ||||||||
->expects($this->once()) | ||||||||
->method('resetValue'); | ||||||||
|
||||||||
$filter = $this->inputFilter; | ||||||||
$filter->add($arrayInput, 'arrayInput'); | ||||||||
$filter->setData(['foo' => 'bar']); | ||||||||
} | ||||||||
|
||||||||
/** | ||||||||
* @group 6431 | ||||||||
*/ | ||||||||
|
@@ -597,15 +580,6 @@ public function testMerge() | |||||||
); | ||||||||
} | ||||||||
|
||||||||
public function testHasValueIsFalseIfNoValueWasProvided() | ||||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Maks3w
Author
Member
|
// Inputs without value must be reset for to have clean states when use different setData arguments | |
/** @var Input|MockObject $flatInput */ | |
$resetInput = $this->getMockBuilder(Input::class) |
@Maks3w Why did you removed this test? It tests behavior, not code and should stay so regressions are noticed.