[svn r21928] Fixed return session name

skala
Arthur Portugal 16 years ago
parent 6c3fdaab09
commit fdaf016938
  1. 8
      tests/main/inc/lib/main_api.lib.test.php

@ -334,11 +334,15 @@ class TestMainApi extends UnitTestCase {
$this->assertTrue(is_numeric($res));
//var_dump($res);
}
/** If there is not a session name not return nothing, return null
* @author aportugal
*/
function testApiGetSessionName(){
$session_id['sesion_id']=1;
$session_id='';
$res = api_get_session_name($session_id);
$this->assertTrue(is_string($res));
//$this->assertTrue(is_string($res));
$this->assertTrue(is_null($res));
//var_dump($res);
}

Loading…
Cancel
Save