1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 02:21:58 +02:00

Fixes #5093 - True/False labels on <select> options.

This commit is contained in:
camer0n
2023-11-01 08:07:30 -07:00
parent fb98771b82
commit faa2f8ad34
2 changed files with 11 additions and 2 deletions

View File

@@ -779,6 +779,14 @@ class e_formTest extends \Codeception\Test\Unit
$this->assertEquals($expected, $actual);
$tests = ['true'=>'True', 'false'=>'False', 'legacy'=>'Legacy'];
foreach($tests as $k=>$v)
{
$expected = "<option value='$k'>$v</option>";
$result = $this->_frm->option($v,$k);
$this->assertSame($expected, $result);
}
}
public function testOption_multi()