Skip to content
Snippets Groups Projects
Commit dd491a51 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add more phpunit

parent daaf909c
Branches
Tags
No related merge requests found
......@@ -266,6 +266,24 @@ class SocieteTest extends PHPUnit_Framework_TestCase
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
$this->assertNotEquals($localobject->date_creation, '');
$localobject->idprof1=493861496;
$localobject->idprof2=49386149600021;
$result=$localobject->id_prof_check(1,$localobject);
print __METHOD__." result=".$result."\n";
$this->assertLessThan($result, 0);
$result=$localobject->id_prof_check(2,$localobject);
print __METHOD__." result=".$result."\n";
$this->assertLessThan($result, 0);
$localobject->idprof1='id1ko';
$localobject->idprof2='id2ko';
$result=$localobject->id_prof_check(1,$localobject);
print __METHOD__." result=".$result."\n";
$this->assertGreaterThan($result, 0);
$result=$localobject->id_prof_check(2,$localobject);
print __METHOD__." result=".$result."\n";
$this->assertGreaterThan($result, 0);
return $localobject->id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment