mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
parent
84b10ba707
commit
0b659d513e
1 changed files with 11 additions and 0 deletions
|
@ -3786,6 +3786,17 @@ class FormHelperTest extends CakeTestCase {
|
||||||
'/select'
|
'/select'
|
||||||
);
|
);
|
||||||
$this->assertTags($result, $expected);
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue