lithium\tests\cases\template\helper\FormTest::testFormFieldWithCustomConfig PHP Method

testFormFieldWithCustomConfig() public method

    public function testFormFieldWithCustomConfig()
    {
        $this->form->config(array('field' => array('class' => 'custom-field')));
        $result = $this->form->field('username');
        $this->assertTags($result, array('div' => array(), 'label' => array('for' => 'Username'), 'Username', '/label', 'input' => array('type' => 'text', 'name' => 'username', 'class' => 'custom-field', 'id' => 'Username'), '/div'));
        $this->assertTags($this->form->end(), array('/form'));
        $this->form->config(array('templates' => array('end' => "</table></form>")));
        $this->assertTags($this->form->end(), array('/table', '/form'));
    }
FormTest