@@ -32,6 +32,11 @@ class Contact extends CakeTestModel {
3232
3333class BoostCakeFormHelperTest extends CakeTestCase {
3434
35+ /**
36+ * setUp
37+ *
38+ * @return void
39+ */
3540 public function setUp () {
3641 parent ::setUp ();
3742 $ this ->View = new View ();
@@ -40,11 +45,21 @@ public function setUp() {
4045 ClassRegistry::addObject ('Contact ' , new Contact ());
4146 }
4247
48+ /**
49+ * tearDown
50+ *
51+ * @return void
52+ */
4353 public function tearDown () {
4454 unset($ this ->View );
4555 unset($ this ->Form );
4656 }
4757
58+ /**
59+ * testInput
60+ *
61+ * @return void
62+ */
4863 public function testInput () {
4964 $ result = $ this ->Form ->input ('name ' );
5065 $ this ->assertTags ($ result , array (
@@ -108,6 +123,11 @@ public function testInput() {
108123 ));
109124 }
110125
126+ /**
127+ * testBeforeInputAfterInput
128+ *
129+ * @return void
130+ */
111131 public function testBeforeInputAfterInput () {
112132 $ result = $ this ->Form ->input ('name ' , array (
113133 'beforeInput ' => 'Before Input ' ,
@@ -127,6 +147,11 @@ public function testBeforeInputAfterInput() {
127147 ));
128148 }
129149
150+ /**
151+ * testCheckbox
152+ *
153+ * @return void
154+ */
130155 public function testCheckbox () {
131156 $ result = $ this ->Form ->input ('name ' , array ('type ' => 'checkbox ' ));
132157 $ this ->assertTags ($ result , array (
@@ -179,6 +204,11 @@ public function testCheckbox() {
179204 ));
180205 }
181206
207+ /**
208+ * testCheckboxLabelEscape
209+ *
210+ * @return void
211+ */
182212 public function testCheckboxLabelEscape () {
183213 $ result = $ this ->Form ->input ('name ' , array (
184214 'type ' => 'checkbox ' ,
@@ -199,6 +229,11 @@ public function testCheckboxLabelEscape() {
199229 ));
200230 }
201231
232+ /**
233+ * testSelectMultipleCheckbox
234+ *
235+ * @return void
236+ */
202237 public function testSelectMultipleCheckbox () {
203238 $ result = $ this ->Form ->select ('name ' ,
204239 array (
@@ -290,6 +325,11 @@ public function testSelectMultipleCheckbox() {
290325 ));
291326 }
292327
328+ /**
329+ * testRadio
330+ *
331+ * @return void
332+ */
293333 public function testRadio () {
294334 $ result = $ this ->Form ->input ('name ' , array (
295335 'type ' => 'radio ' ,
@@ -320,6 +360,11 @@ public function testRadio() {
320360 ));
321361 }
322362
363+ /**
364+ * testErrorMessage
365+ *
366+ * @return void
367+ */
323368 public function testErrorMessage () {
324369 $ Contact = ClassRegistry::getObject ('Contact ' );
325370 $ Contact ->validationErrors ['password ' ] = array ('Please provide a password ' );
@@ -402,6 +447,11 @@ public function testErrorMessage() {
402447 ));
403448 }
404449
450+ /**
451+ * testPostLink
452+ *
453+ * @return void
454+ */
405455 public function testPostLink () {
406456 $ result = $ this ->Form ->postLink ('Delete ' , '/posts/delete/1 ' , array (
407457 'block ' => 'form '
0 commit comments