Activating more tests and fixing a few bugs - BT#821

skala
Guillaume Viguier 15 years ago
parent 26f5c2c4b5
commit f2f5c0c7fe
  1. 2
      tests/main/gradebook/lib/be/category.class.test.php
  2. 2
      tests/test_manager.inc.php
  3. 14
      tests/test_suite.php

@ -16,7 +16,7 @@ class TestCategoryClass extends UnitTestCase {
$this->category->set_user_id(1);
$this->category->set_course_code('COURSECATEGORYCLASS');
$this->category->set_certificate_min_score(20);
$this->category->set_parent_id(1);
$this->category->set_parent_id(0);
$this->category->set_session_id(1);
$this->category->set_weight(1);
$this->category->set_visible(1);

@ -255,7 +255,7 @@ if ($handle = opendir($path)) {
-----------------------------------------------------------
*/
if (!headers_sent()) {
if (!headers_sent() && session_id() != "") {
$res=api_session_destroy();
}
}

@ -172,16 +172,16 @@ class TestsSuite extends TestSuite {
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/forum/forumfunction.inc.test.php');
/**GRADEBOOK*/
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/attendancelink.class.test.php');
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/category.class.test.php');
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/dropboxlink.class.test.php');
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/evaluation.class.test.php');
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/exerciselink.class.test.php');
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/forumthreadlink.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/attendancelink.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/category.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/dropboxlink.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/evaluation.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/exerciselink.class.test.php');
$this->addFile(api_get_path(SYS_TEST_PATH).'main/gradebook/lib/be/forumthreadlink.class.test.php');
/**NEW SCORM*/
//$this->addTestFile(dirname(__FILE__).'/main/newscorm/openoffice_presentation.class.test.php');
}
}
$test = &new TestsSuite();
?>
?>

Loading…
Cancel
Save