Browse Source

Expand test for FormHelper.

Refs #3931
mark_story 11 years ago
parent
commit
e12e44debd
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/TestCase/View/Helper/FormHelperTest.php

+ 7 - 0
tests/TestCase/View/Helper/FormHelperTest.php

@@ -2573,6 +2573,13 @@ class FormHelperTest extends TestCase {
 		);
 		$this->assertTags($result, $expected);
 
+		$this->View->viewVars['users'] = null;
+		$result = $this->Form->input('Thing.user_id', array(
+			'options' => array('value' => 'good', 'other' => 'bad'),
+			'empty' => 'Some Empty'
+		));
+		$this->assertTags($result, $expected);
+
 		$this->Form->data = array();
 		$result = $this->Form->input('Publisher.id', array(
 				'label' => 'Publisher',