Przeglądaj źródła

Minor - added descriptions to tests classes

Yannick Warnier 14 lat temu
rodzic
commit
f2e5693787

+ 3 - 0
home/default_platform_document/template_thumb/coursetitle.gif


+ 1 - 3
tests/main/inc/banner.inc.test.php

@@ -3,9 +3,7 @@
 class TestBanner extends UnitTestCase{
 
 	public function TestBanner(){
-
-		$this->UnitTestCase('Determine the tabs function tests');
-
+		$this->UnitTestCase('Banners library - main/inc/banner.inc.test.php');
 	}
 	public function testGetTabs(){
 		global $_course, $rootAdminWeb, $_user;

+ 4 - 1
tests/main/inc/lib/classmanager.lib.test.php

@@ -3,6 +3,9 @@ require_once(api_get_path(LIBRARY_PATH).'classmanager.lib.php');
 
 class TestClassManager extends UnitTestCase {
 
+	public function TestClassManager(){
+		$this->UnitTestCase('Classes library - main/inc/lib/classmanager.lib.test.php');
+	}
 	function testAddUser() {
 		$user_id='1';
 		$class_id='1';
@@ -88,4 +91,4 @@ class TestClassManager extends UnitTestCase {
 	}
 
 }
-?>
+?>

+ 3 - 0
tests/main/inc/lib/session_handler.class.test.php

@@ -9,6 +9,9 @@ class TestSessionHandler extends UnitTestCase {
 	var $session_name;
 
 
+	public function TestSessionHandler(){
+		$this->UnitTestCase('Session handler library - main/inc/lib/session_handler.class.test.php');
+	}
 	function testClose() {
 		$instancia = new session_handler();
 		$res=$instancia->close();

+ 3 - 0
tests/main/inc/lib/sessionmanager.lib.test.php

@@ -4,6 +4,9 @@ require_once(api_get_path(LIBRARY_PATH).'sessionmanager.lib.php');
 
 class TestSessionManager extends UnitTestCase {
 
+	public function TestSessionManager(){
+		$this->UnitTestCase('Sessions library - main/inc/lib/sessionmanager.lib.test.php');
+	}
 	function testadd_courses_to_session() {
 		$id_session='';
 		$course_list='';

+ 6 - 0
tests/main/inc/lib/surveymanager.lib.test.php

@@ -4,6 +4,9 @@ require_once api_get_path(LIBRARY_PATH).'surveymanager.lib.php';
 /*
 class TestSurveyManager extends UnitTestCase {
 
+	public function TestSurveyManager(){
+		$this->UnitTestCase('Surveys library - main/inc/lib/surveymanager.lib.test.php');
+	}
 		function testcreate_survey() {
 		$surveycode='';
 		$surveytitle='';
@@ -291,6 +294,9 @@ class TestSurveyTree extends UnitTestCase {
 	var $surveylist;
 	var $plainsurveylist;
 	var $numbersurveys;
+	public function TestSurveTree(){
+		$this->UnitTestCase('Survey trees library - main/inc/lib/surveymanager.lib.test.php');
+	}
 	function testgetParentId() {
 		$id='';
 		$res=SurveyTree::getParentId($id);

+ 0 - 0
tests/test_webservices.php