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

    public function testLink($method = null, $text = null, $attributeArray = [], $expect = null)
    {
        /* setup */
        $form = new Html\Form($this->_registry, $this->_language);
        $form->init();
        $form->{$method}($text, $attributeArray);
        /* actual */
        $actual = $form;
        /* compare */
        $this->assertEquals($expect, $actual);
    }