Browse Source

Added a new condition in the test function

Ricardo Rodriguez 15 years ago
parent
commit
0584785ceb
1 changed files with 6 additions and 1 deletions
  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() {
 	public function testget_target_categories() {
 		$res = $this->category->get_target_categories();
 		$res = $this->category->get_target_categories();
+		if(is_array($res)) {
 		$this->assertTrue(is_array($res));
 		$this->assertTrue(is_array($res));
-		//var_dump($res);
+		} else {
+			$this->assertTrue(is_null($res));
+		}
+		var_dump($res);
+		
 	}
 	}
 	
 	
 	/**
 	/**