Enh #7449: HtmlTest improvements

This commit is contained in:
Anton Ivanov
2015-02-26 10:26:41 +03:00
committed by Qiang Xue
parent 9a52aab0f1
commit 36aa65287a

View File

@@ -296,7 +296,7 @@ EOD;
<option value="value 2">text&nbsp;&nbsp;2</option> <option value="value 2">text&nbsp;&nbsp;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));