mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
Enh #7449: HtmlTest improvements
This commit is contained in:
@@ -296,7 +296,7 @@ EOD;
|
|||||||
<option value="value 2">text 2</option>
|
<option value="value 2">text 2</option>
|
||||||
</select>
|
</select>
|
||||||
EOD;
|
EOD;
|
||||||
$this->assertEqualsWithoutLE($expected, Html::listBox('test', null, $this->getDataItems2(), ['encodeSpaces' => true]));
|
$this->assertEqualsWithoutLE($expected, Html::listBox('test', null, $this->getDataItems2(), ['encode' => true]));
|
||||||
$expected = <<<EOD
|
$expected = <<<EOD
|
||||||
<select name="test" size="4">
|
<select name="test" size="4">
|
||||||
<option value="value1">text1</option>
|
<option value="value1">text1</option>
|
||||||
@@ -499,7 +499,7 @@ EOD;
|
|||||||
'groups' => [
|
'groups' => [
|
||||||
'group12' => ['class' => 'group'],
|
'group12' => ['class' => 'group'],
|
||||||
],
|
],
|
||||||
'encodeSpaces' => true,
|
'encode' => true,
|
||||||
];
|
];
|
||||||
$this->assertEqualsWithoutLE($expected, Html::renderSelectOptions(['value111', 'value1'], $data, $attributes));
|
$this->assertEqualsWithoutLE($expected, Html::renderSelectOptions(['value111', 'value1'], $data, $attributes));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user