fixed test failure and removed useless test

skala
Yannick Warnier 15 years ago
parent 17f6c30070
commit 22dac83fa8
  1. 11
      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));
}
}
?>

Loading…
Cancel
Save