Skip to content

Commit

Permalink
MDL-19756 Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Jul 29, 2009
1 parent 051bf8c commit 55536d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/outputlib.php
Expand Up @@ -2722,7 +2722,7 @@ public function htmllist($list) {

foreach ($list->items as $listitem) {
if ($listitem instanceof html_list) {
$output .= $this->output_start_tag('li');
$output .= $this->output_start_tag('li', array());
$output .= $this->htmllist($listitem);
$output .= $this->output_end_tag('li');
} else if ($listitem instanceof html_list_item) {
Expand Down
4 changes: 2 additions & 2 deletions lib/simpletest/testoutputlib.php
Expand Up @@ -910,7 +910,7 @@ public function test_link_to_popup_empty_link() {
// Empty link object: link MUST have a text value
$link = new html_link();
$popupaction = new popup_action('click', 'http://test.com', 'my_popup');
$link->add_action_object($popupaction);
$link->add_action($popupaction);
$this->expectException();
$html = $this->renderer->link_to_popup($link);
}
Expand All @@ -921,7 +921,7 @@ public function test_link_to_popup() {
$link->url = 'http://test.com';
$link->title = 'Popup window';
$popupaction = new popup_action('click', 'http://test.com', 'my_popup');
$link->add_action_object($popupaction);
$link->add_action($popupaction);

$html = $this->renderer->link_to_popup($link);
$expectedattributes = array('title' => 'Popup window', 'href' => 'http://test.com');
Expand Down

0 comments on commit 55536d8

Please sign in to comment.