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

testFieldWithCustomType() public method

    public function testFieldWithCustomType()
    {
        $field = $this->form->field('completion', array('type' => 'range', 'id' => 'completion', 'min' => '0', 'max' => '100', 'label' => 'Completion %', 'wrap' => array('class' => 'input')));
        $this->assertTags($field, array('div' => array('class' => 'input'), 'label' => array('for' => 'completion'), 'Completion %', '/label', 'input' => array('type' => 'range', 'name' => 'completion', 'id' => 'completion', 'min' => '0', 'max' => '100'), '/div'));
    }
FormTest