UnitTestCase('User import WS library - main/webservices/user_import/import.lib.test.php'); } function testcomplete_missing_data(){ $user='admin'; $res=complete_missing_data($user); $this->assertTrue(is_string($res)); //var_dump($res); } /** * Save the imported data */ function testsave_data() { global $users; $res=save_data($users); $this->assertTrue(is_null($res)); //var_dump($res); } function testvalidate_data() { global $defined_auth_sources, $users; $res=validate_data($users); $this->assertTrue(is_array($res)); //var_dump($res); } function testparse_csv_data() { $file= '/tmp/'; $res=parse_csv_data($file); $this->assertTrue(is_array($res)); //var_dump($res); } /** * This functon only is added to the end of the test and the end of the files in the all test. */ /*public function testDeleteCourse() { global $cidReq; $resu = CourseManager::delete_course($cidReq); }*/ } ?>