Permalink
Browse files

Add tests for #3545

Fix included in GH-1075

Closes #3545
  • Loading branch information...
markstory committed Jan 24, 2013
1 parent 84b10ba commit 0b659d513e73f757f150cdf863dfebcedb634111
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -3786,6 +3786,17 @@ public function testSelect() {
'/select'
);
$this->assertTags($result, $expected);
$this->Form->request->data['Model']['field'] = 50;
$result = $this->Form->select('Model.field', array('50f5c0cf' => 'Stringy', '50' => 'fifty'));
$expected = array(
'select' => array('name' => 'data[Model][field]', 'id' => 'ModelField'),
array('option' => array('value' => '')), '/option',
array('option' => array('value' => '50f5c0cf')), 'Stringy', '/option',
array('option' => array('value' => '50', 'selected' => 'selected')), 'fifty', '/option',
'/select'
);
$this->assertTags($result, $expected);
}
/**

0 comments on commit 0b659d5

Please sign in to comment.