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

testFieldInputIdWithFormId() public method

    public function testFieldInputIdWithFormId()
    {
        $this->form->create(null, array('id' => 'registration'));
        $result = $this->form->field('name');
        $this->assertTags($result, array('div' => array(), 'label' => array('for' => 'Name'), 'Name', '/label', 'input' => array('type' => 'text', 'name' => 'name', 'id' => 'Name')));
    }
FormTest