浏览代码

Added a new condition in the test function

Ricardo Rodriguez 15 年之前
父节点
当前提交
0584785ceb
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tests/main/gradebook/lib/be/category.class.test.php

+ 6 - 1
tests/main/gradebook/lib/be/category.class.test.php

@@ -237,8 +237,13 @@ class TestCategoryClass extends UnitTestCase {
 	 
 	public function testget_target_categories() {
 		$res = $this->category->get_target_categories();
+		if(is_array($res)) {
 		$this->assertTrue(is_array($res));
-		//var_dump($res);
+		} else {
+			$this->assertTrue(is_null($res));
+		}
+		var_dump($res);
+		
 	}
 	
 	/**