Skip to content
Snippets Groups Projects
Commit ddb6c308 authored by Michael Grosse's avatar Michael Grosse
Browse files

Add test to verify that no error occurs

Without the change in issue #1801, or commit
1b26d16d respectively, this adjusted
test would throw an error since it would attempt to use another array as
an array-key.

The fact that the test passes without error means that the bug is fixed.
parent 1b26d16d
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,10 @@ class form_dropdownelement_test extends DokuWikiTest {
'data-foo' => 'bar'
)
),
'second'
'second',
'3' => array(
'label' => 'the label of the complex third option',
)
);
$form->addDropdown('foo', $options, 'label text');
......@@ -70,7 +73,7 @@ class form_dropdownelement_test extends DokuWikiTest {
$this->assertTrue($select->length == 1);
$options = $pq->find('option');
$this->assertTrue($options->length == 2);
$this->assertEquals(3, $options->length);
$option = $pq->find('option#theID');
$this->assertEquals(1, $option->length);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment