Explorar o código

Modified - Fixed the problem in this file

Ricardo Rodriguez %!s(int64=15) %!d(string=hai) anos
pai
achega
8206ed31f5
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      tests/main/course_info/download.lib.test.php

+ 8 - 4
tests/main/course_info/download.lib.test.php

@@ -9,10 +9,14 @@ class TestCreateBackupIsAdmin extends UnitTestCase {
    {
    		$_GET = array('archive' => 'index.html');
    		
-          $res =  create_backup_is_admin(true);
-          $this->assertTrue($res, 'son iguales');
-          var_dump($res);
-    }
+          $resTrue =  create_backup_is_admin(true);
+          $this->assertTrue(is_bool($resTrue));
+          $resFalse = create_backup_is_admin(false);
+          $this->assertFalse($resFalse);
+   		  $this->assertEqual($resTrue , $resFalse);
+   		  //var_dump($resTrue, $resFalse);
+   		  
+   }
 }
 
 ?>