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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user