From 55536d8453e048492553ff8d5a868d40f5692848 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 29 Jul 2009 01:13:04 +0000 Subject: [PATCH] MDL-19756 Updated unit tests --- lib/outputlib.php | 2 +- lib/simpletest/testoutputlib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index 22387bb498..563d4bc4c5 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -2722,7 +2722,7 @@ class moodle_core_renderer extends moodle_renderer_base { 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) { diff --git a/lib/simpletest/testoutputlib.php b/lib/simpletest/testoutputlib.php index e8ffc1286d..5c1ecb3cc0 100644 --- a/lib/simpletest/testoutputlib.php +++ b/lib/simpletest/testoutputlib.php @@ -910,7 +910,7 @@ class moodle_core_renderer_test extends UnitTestCase { // 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); } @@ -921,7 +921,7 @@ class moodle_core_renderer_test extends UnitTestCase { $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'); -- 2.39.5