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

Commit 3ffd32c

Browse files
committed
[#72] Remove tests specific to ArrayInput on InputFilter suite
ArrayInput specific logic branch its not longer present and current Input tests are enough
1 parent a816b14 commit 3ffd32c

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

test/BaseInputFilterTest.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPUnit_Framework_MockObject_MockObject as MockObject;
1616
use PHPUnit_Framework_TestCase as TestCase;
1717
use stdClass;
18-
use Zend\InputFilter\ArrayInput;
1918
use Zend\InputFilter\BaseInputFilter;
2019
use Zend\InputFilter\Exception\InvalidArgumentException;
2120
use Zend\InputFilter\Exception\RuntimeException;
@@ -556,22 +555,6 @@ public function testAddingExistingInputWillMergeIntoExisting()
556555
$this->assertFalse($filter->get('foo')->isRequired());
557556
}
558557

559-
/**
560-
* @group 5638
561-
*/
562-
public function testPopulateSupportsArrayInputEvenIfDataMissing()
563-
{
564-
/** @var ArrayInput|MockObject $arrayInput */
565-
$arrayInput = $this->getMock(ArrayInput::class);
566-
$arrayInput
567-
->expects($this->once())
568-
->method('resetValue');
569-
570-
$filter = $this->inputFilter;
571-
$filter->add($arrayInput, 'arrayInput');
572-
$filter->setData(['foo' => 'bar']);
573-
}
574-
575558
/**
576559
* @group 6431
577560
*/
@@ -597,15 +580,6 @@ public function testMerge()
597580
);
598581
}
599582

600-
public function testHasValueIsFalseIfNoValueWasProvided()
601-
{
602-
$inputFilter = new BaseInputFilter();
603-
$inputFilter->add(new ArrayInput(), 'foo');
604-
605-
$inputFilter->setData([]);
606-
$this->assertFalse($inputFilter->get('foo')->hasValue());
607-
}
608-
609583
public function addMethodArgumentsProvider()
610584
{
611585
$inputTypes = $this->inputProvider();

0 commit comments

Comments
 (0)