Skip to content

Commit

Permalink
Expand test for FormHelper.
Browse files Browse the repository at this point in the history
Refs #3931
  • Loading branch information
markstory committed Jul 10, 2014
1 parent 160f56c commit e12e44d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -2573,6 +2573,13 @@ public function testInputSelectType() {
);
$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',
Expand Down

0 comments on commit e12e44d

Please sign in to comment.