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

testFormErrorWithRecordAndStringError() public method

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