Extends
lithium\test\Unit
Tests that the string template form `Form::field()` can be overridden.
Source
public function testFieldTemplateOverride() {
$this->form->config(array('templates' => array('field' => '{:label}{:input}{:error}')));
$result = $this->form->field('name', array('type' => 'text'));
$this->assertTags($result, array(
'label' => array('for' => 'Name'), 'Name', '/label',
'input' => array('type' => 'text', 'name' => 'name', 'id' => 'Name')
));
}