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

testFormErrorWithRecordAndSpecificKey() public method

    public function testFormErrorWithRecordAndSpecificKey()
    {
        $record = new Record(array('model' => $this->_model));
        $record->errors(array('name' => array('Please enter a name')));
        $this->form->create($record);
        $result = $this->form->error('name', 0);
        $this->assertTags($result, array('div' => array('class' => 'error'), 'Please enter a name', '/div'));
    }
FormTest