Browse Source

fixed test failure and removed useless test

Yannick Warnier 14 years ago
parent
commit
22dac83fa8
1 changed files with 5 additions and 6 deletions
  1. 5 6
      tests/main/conference/get_translation.lib.test.php

+ 5 - 6
tests/main/conference/get_translation.lib.test.php

@@ -3,16 +3,15 @@ require_once(api_get_path(SYS_CODE_PATH).'conference/get_translation.lib.php');
 
 class TestGetTranslation extends UnitTestCase {
 
+        public function __construct() {
+            $this->UnitTestCase('Conference translation getter library - main/conference/get_translation.lib.test.php');
+        }
+
 	function testget_language_file_as_xml(){
 		ob_start();
 		$res=get_language_file_as_xml($language='english');
 		ob_end_clean();
-		if(is_string($res)) {
-			$this->assertFalse($res);
-		} else {
-		$this->assertTrue($res);
-		}
-		//var_dump($res);
+		$this->assertTrue(is_string($res));
 	}
 }
 ?>