diff --git a/quickbuild.xml b/quickbuild.xml new file mode 100644 index 00000000000..e5d6707b1ab --- /dev/null +++ b/quickbuild.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/phpunit/SocieteTest.php b/test/phpunit/SocieteTest.php index 2bf78f5878c..b2ddcd1af5a 100755 --- a/test/phpunit/SocieteTest.php +++ b/test/phpunit/SocieteTest.php @@ -266,22 +266,24 @@ class SocieteTest extends PHPUnit_Framework_TestCase print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n"; $this->assertNotEquals($localobject->date_creation, ''); + $localobject->country_code='FR'; $localobject->idprof1=493861496; $localobject->idprof2=49386149600021; $result=$localobject->id_prof_check(1,$localobject); - print __METHOD__." result=".$result."\n"; + print __METHOD__." true idprof1 result=".$result."\n"; $this->assertLessThan($result, 0); $result=$localobject->id_prof_check(2,$localobject); - print __METHOD__." result=".$result."\n"; + print __METHOD__." true idprof2 result=".$result."\n"; $this->assertLessThan($result, 0); + $localobject->country_code='FR'; $localobject->idprof1='id1ko'; $localobject->idprof2='id2ko'; $result=$localobject->id_prof_check(1,$localobject); - print __METHOD__." result=".$result."\n"; + print __METHOD__." wrong idprof1 result=".$result."\n"; $this->assertGreaterThan($result, 0); $result=$localobject->id_prof_check(2,$localobject); - print __METHOD__." result=".$result."\n"; + print __METHOD__." wrong idprof2 result=".$result."\n"; $this->assertGreaterThan($result, 0); return $localobject->id;