|
|
@ -74,40 +74,39 @@ class TestsSuite extends TestSuite { |
|
|
|
$this->TestSuite('All tests suite'); |
|
|
|
$this->TestSuite('All tests suite'); |
|
|
|
|
|
|
|
|
|
|
|
// Loading test cases |
|
|
|
// Loading test cases |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/database.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/database.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_course.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_course.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/course.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/course.lib.test.php'); |
|
|
|
|
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/banner.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/banner.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/calendar.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/calendar.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/surveymanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/surveymanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/session_handler.class.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/session_handler.class.test.php'); |
|
|
|
|
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/sessionmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/sessionmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/classmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/classmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/export.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/export.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/legal.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/legal.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/mail.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/mail.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/message.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/message.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/online.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/online.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/security.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/security.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/specific_fields_manager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/specific_fields_manager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/social.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/social.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/sortabletable.class.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/sortabletable.class.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/statsUtils.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/statsUtils.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/tablesort.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/tablesort.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/text.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/text.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/tracking.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/tracking.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/blog.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/blog.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/urlmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/urlmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/stats.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/stats.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/course_document.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/course_document.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/tool_navigation_menu.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/tool_navigation_menu.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/display.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/display.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/document.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/document.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/events.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/events.lib.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/fileDisplay.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/fileDisplay.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/fileManage.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/fileManage.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/geometry.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/geometry.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/statistics/statistics.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/statistics/statistics.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/access_url_edit_courses_to_url_functions.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/access_url_edit_courses_to_url_functions.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/access_url_edit_sessions_to_url_functions.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/access_url_edit_sessions_to_url_functions.lib.test.php'); |
|
|
@ -116,7 +115,6 @@ class TestsSuite extends TestSuite { |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_many_session_to_category_functions.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_many_session_to_category_functions.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/access_urls.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/access_urls.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/sub_language.class.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/admin/sub_language.class.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/add_courses_to_sessions_functions.lib.test.php'); |
|
|
|
|
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/auth/lost_password.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/auth/lost_password.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/auth/openid/xrds.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/auth/openid/xrds.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/chat/chat_functions.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/chat/chat_functions.lib.test.php'); |
|
|
@ -131,10 +129,10 @@ class TestsSuite extends TestSuite { |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/notebook.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/notebook.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/permissions/permissions_functions.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/permissions/permissions_functions.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/dropbox/dropbox_class.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/dropbox/dropbox_class.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/dropbox/dropbox_functions.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/dropbox/dropbox_functions.inc.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/search/search_suggestions.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/search/search_suggestions.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti2/qti2_classes.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti2/qti2_classes.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/scorm/scorm_classes.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/scorm/scorm_classes.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/usermanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/usermanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/groupmanager.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/groupmanager.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/image.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/image.lib.test.php'); |
|
|
@ -147,39 +145,37 @@ class TestsSuite extends TestSuite { |
|
|
|
|
|
|
|
|
|
|
|
// These files are metadata libraries, not available to test |
|
|
|
// These files are metadata libraries, not available to test |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xht.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xht.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xmd.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/xmd.lib.test.php'); |
|
|
|
|
|
|
|
|
|
|
|
// These files are not used and is not finished implement, not available to test |
|
|
|
// These files are not used and is not finished implement, not available to test |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti/qti_classes.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti/qti_classes.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti2/qti2_export.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/qti2/qti2_export.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/exercise_import.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/exercise_import.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/scorm/scorm_export.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/export/scorm/scorm_export.test.php'); |
|
|
|
|
|
|
|
|
|
|
|
// EXERCISES |
|
|
|
// EXERCISES |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/answer.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/answer.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise_result.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise_result.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/exercise_show_functions.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/exercise_show_functions.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.class.test.php'); |
|
|
|
// This files have problem with class and call objects, is not available to test |
|
|
|
// This files have problem with class and call objects, is not available to test |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/exercise.lib.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/fill_blanks.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/fill_blanks.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/freeanswer.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'/main/exercice/freeanswer.class.test.php'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FORUM |
|
|
|
// FORUM |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/forum/forumfunction.inc.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/forum/forumfunction.inc.test.php'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GRADEBOOK |
|
|
|
// 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/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/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/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/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/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/forumthreadlink.class.test.php'); |
|
|
|
|
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'main/course_info/download.lib.test.php'); |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'main/course_info/download.lib.test.php'); |
|
|
|
// NEW SCORM |
|
|
|
// NEW SCORM |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/learnpath.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/learnpath.class.test.php'); |
|
|
|
|
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/learnpathItem.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/learnpathItem.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/openoffice_document.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/openoffice_document.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/openoffice_presentation.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/openoffice_presentation.class.test.php'); |
|
|
@ -190,7 +186,6 @@ class TestsSuite extends TestSuite { |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormItem.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormItem.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormOrganization.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormOrganization.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormResource.class.test.php'); |
|
|
|
//$this->addFile(api_get_path(SYS_TEST_PATH).'main/newscorm/scormResource.class.test.php'); |
|
|
|
|
|
|
|
|
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/main_api.lib.test.php');//this file delete the course |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/main_api.lib.test.php');//this file delete the course |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/debug.lib.inc.test.php');//this file need be to the finish of the tests |
|
|
|
$this->addFile(api_get_path(SYS_TEST_PATH).'/main/inc/lib/debug.lib.inc.test.php');//this file need be to the finish of the tests |
|
|
|
} |
|
|
|
} |
|
|
|