Fixed problem with agenda items CT#191

skala
Arthur Portugal 16 years ago
parent 164b763204
commit 5029343eb2
  1. 9
      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));

Loading…
Cancel
Save