From 5029343eb29e77091d5d8e43d0e93eb5f57d1914 Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Fri, 22 Jan 2010 10:50:31 -0500 Subject: [PATCH] Fixed problem with agenda items CT#191 --- tests/main/admin/calendar.lib.test.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/main/admin/calendar.lib.test.php b/tests/main/admin/calendar.lib.test.php index f5a24ebec3..1d86039ec5 100755 --- a/tests/main/admin/calendar.lib.test.php +++ b/tests/main/admin/calendar.lib.test.php @@ -146,8 +146,7 @@ class TestCalendar extends UnitTestCase { * Displays all the agenda items */ - public function testDisplayAgendaItems() { - global $_user; + public function testDisplayAgendaItems() { ob_start(); $res = display_agenda_items(); ob_end_clean(); @@ -346,7 +345,7 @@ class TestCalendar extends UnitTestCase { public function testAgendaAddItem(){ global $_course; $course_code=$_course; - $course_info = api_get_course_info($course_code); + $course_info = ''; $title='test'; $content='test function'; $db_start_date='07/11/2009'; @@ -393,7 +392,9 @@ class TestCalendar extends UnitTestCase { } } */ -public function testDeleteAgendaItem(){ + + + public function testDeleteAgendaItem(){ $id=1; $res = delete_agenda_item($id); $this->assertTrue(is_bool($res));