Redaxscript\Tests\Html\FormTest::testInput PHP Method

testInput() public method

testInput
Since: 2.6.0
public testInput ( string $method = null, array $attributeArray = [], string $expect = null )
$method string
$attributeArray array
$expect string
    public function testInput($method = null, $attributeArray = [], $expect = null)
    {
        /* setup */
        $form = new Html\Form($this->_registry, $this->_language);
        $form->init();
        $form->{$method}($attributeArray);
        /* actual */
        $actual = $form->render();
        /* compare */
        $this->assertEquals($expect, $actual);
    }