Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test case to proof that less between strings also work and do not error

  • Loading branch information...
commit 7aa78c40f3a714897766c542be51ea1e2f0e6ff1 1 parent 490bbf8
@dereuromark authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
View
32 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -3568,6 +3568,38 @@ public function testRadioDisabled() {
'/div'
);
$this->assertTags($result, $expected);
+
+ $result = $this->Form->input('Model.field', array(
+ 'options' => array('1' => 'first', '2' => 'second'),
+ 'type' => 'radio',
+ 'before' => '--before--',
+ 'after' => '--after--',
+ 'separator' => '--separator--',
+ 'between' => array('--between first--')
+ ));
+
+ $expected = array(
+ 'div' => array('class' => 'input radio'),
+ '--before--',
+ 'fieldset' => array(),
+ 'legend' => array(),
+ 'Field',
+ '/legend',
+ array('input' => array('type' => 'hidden', 'name' => 'data[Model][field]', 'id' => 'ModelField_', 'value' => '')),
+ array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '1', 'id' => 'ModelField1')),
+ array('label' => array('for' => 'ModelField1')),
+ 'first',
+ '/label',
+ '--between first--',
+ '--separator--',
+ array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '2', 'id' => 'ModelField2')),
+ array('label' => array('for' => 'ModelField2')),
+ 'second',
+ '/label',
+ '/fieldset',
+ '--after--',
+ '/div'
+ );
}
/**

0 comments on commit 7aa78c4

Please sign in to comment.
Something went wrong with that request. Please try again.