diff --git a/tests/main/inc/lib/add_course.lib.inc.test.php b/tests/main/inc/lib/add_course.lib.inc.test.php index e5ce4c8f50..546e510622 100755 --- a/tests/main/inc/lib/add_course.lib.inc.test.php +++ b/tests/main/inc/lib/add_course.lib.inc.test.php @@ -6,7 +6,7 @@ require_once(api_get_path(LIBRARY_PATH).'course.lib.php'); class TestAddCourse extends UnitTestCase { function TestAddCourse() { - $this->UnitTestCase('Courses creation tests'); + $this->UnitTestCase('Courses creation - main/inc/lib/add_course.lib.inc.test.php'); } @@ -26,9 +26,9 @@ class TestAddCourse extends UnitTestCase { $course_datos['tutor_name'], $course_datos['category_code'], $course_datos['course_language'],$course_datos['course_admin_id'], $course_datos['db_prefix'], $course_datos['firstExpirationDelay']); - $this->assertTrue(is_bool($res)); - - } + //should be code string if succeeded (false if failed) + $this->assertTrue(is_string($res)); + } function testRegisterCourse() { global $_configuration; diff --git a/tests/main/inc/lib/database.lib.test.php b/tests/main/inc/lib/database.lib.test.php index dad58c3075..49a6b4da51 100755 --- a/tests/main/inc/lib/database.lib.test.php +++ b/tests/main/inc/lib/database.lib.test.php @@ -6,7 +6,7 @@ class TestDatabase extends UnitTestCase { public $dbase; public function TestDatabase() { - $this->UnitTestCase('Database library tests'); + $this->UnitTestCase('Database library - main/inc/lib/database.lib.test.php'); } public function setUp() { @@ -308,4 +308,4 @@ class TestDatabase extends UnitTestCase { $this->assertTrue(is_array($res)); } } -?> \ No newline at end of file +?>