MDL-19756 Migrating choose_from_menu to outputlib

This commit is contained in:
nicolasconnault
2009-07-28 02:45:13 +00:00
parent bef1011e3d
commit 8e127eb38e
8 changed files with 180 additions and 127 deletions
+8
View File
@@ -1153,4 +1153,12 @@ class moodle_core_renderer_test extends UnitTestCase {
// TODO test with more different parameters
}
public function test_html_list() {
$htmllist = new html_list();
$data = array('item1', 'item2', array('item1-1', 'item1-2'));
$htmllist->load_data($data);
$htmllist->items[2]->type = 'ordered';
$html = $this->renderer->htmllist($htmllist);
}
}