If the id is passed in the selectStatic as a parameter, we end up with two id tags in the output.
$params = array(
'some_field_name',
'id' => 'some_id',
'class' => 'some_class',
);
$options = array(
'A' => 'Active',
'I' => 'Inactive',
);
$expected = '<select id="some_id" name="some_field_name" '
. 'class="some_class">' . PHP_EOL
. chr(9) . '<option value="A">Active</option>' . PHP_EOL
. chr(9) . '<option value="I">Inactive</option>' . PHP_EOL
. '</select>';
$actual = Tg::selectStatic($params, $options);
$this->assertEquals(
$expected,
$actual,
sprintf(
$this->message,
'selectStatic with id in parameters'
)
);