From 22dac83fa84c92498c2049afd6b4e4db82924221 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 19 Jul 2010 16:12:27 -0500 Subject: [PATCH] fixed test failure and removed useless test --- tests/main/conference/get_translation.lib.test.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/main/conference/get_translation.lib.test.php b/tests/main/conference/get_translation.lib.test.php index 322055e88f..89bccd4e87 100755 --- a/tests/main/conference/get_translation.lib.test.php +++ b/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)); } } ?>