From a02d07c969f53a825825304b94af061e7470440b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 2 Jan 2012 09:07:10 +0100 Subject: [PATCH] Test to fix Jenkins phpunit error --- test/phpunit/ContactTest.php | 3 ++- test/phpunit/ContratTest.php | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test/phpunit/ContactTest.php b/test/phpunit/ContactTest.php index 51dba473862..3fc4bd01f40 100755 --- a/test/phpunit/ContactTest.php +++ b/test/phpunit/ContactTest.php @@ -124,7 +124,7 @@ class ContactTest extends PHPUnit_Framework_TestCase $result=$localobject->create($user); print __METHOD__." result=".$result."\n"; - $this->assertLessThanOrEqual($result, 0); + $this->assertLessThan($result, 0); return $result; } @@ -143,6 +143,7 @@ class ContactTest extends PHPUnit_Framework_TestCase $localobject=new Contact($this->savdb); $result=$localobject->fetch($id); + print __METHOD__." id=".$id." result=".$result."\n"; $this->assertLessThan($result, 0); diff --git a/test/phpunit/ContratTest.php b/test/phpunit/ContratTest.php index 5fed53054ae..0d71f2850a1 100644 --- a/test/phpunit/ContratTest.php +++ b/test/phpunit/ContratTest.php @@ -119,10 +119,11 @@ class ContratTest extends PHPUnit_Framework_TestCase $localobject=new Contrat($this->savdb); $localobject->initAsSpecimen(); - $result=$localobject->create($user,$langs,$conf); - - $this->assertLessThan($result, 0); + $result=$localobject->create($user); + print __METHOD__." result=".$result."\n"; + $this->assertLessThan($result, 0); + return $result; } @@ -140,9 +141,10 @@ class ContratTest extends PHPUnit_Framework_TestCase $localobject=new Contrat($this->savdb); $result=$localobject->fetch($id); - - $this->assertLessThan($result, 0); + print __METHOD__." id=".$id." result=".$result."\n"; + $this->assertLessThan($result, 0); + return $localobject; }