Skip to content
Permalink
Browse files

Add regression test

  • Loading branch information...
jadb committed Mar 31, 2015
1 parent f8beb7b commit c946d18b4528d0e8e1e44b503f308f936d584e48
Showing with 20 additions and 0 deletions.
  1. +20 −0 tests/TestCase/View/Helper/FormHelperTest.php
@@ -6967,6 +6967,26 @@ public function testInputContainerTemplates()
$this->assertContains('<div class="dt">', $result);
}
/**
* Test that *Container templates are used by input.
*
* @return void
*/
public function testFormGroupTemplates()
{
$this->Form->templates([
'radioFormGroup' => '<div class="radio">{{label}}{{input}}</div>',
]);
$this->Form->create($this->article);
$result = $this->Form->input('accept', [
'type' => 'radio',
'options' => ['Y', 'N']
]);
$this->assertContains('<div class="radio">', $result);
}
/**
* Test resetting templates.
*

0 comments on commit c946d18

Please sign in to comment.
You can’t perform that action at this time.