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

testFieldWithLabelShorthand() public method

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