From 67345494360a8f3b7e012ea28c237bab6be0f2c3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Mar 2012 10:38:13 +0100 Subject: [PATCH] Fix: use good function with good parameters --- test/phpunit/CategorieTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index ae9aa31b9c7..bdc362efe31 100755 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -132,7 +132,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase // We create category $result=$localobject->create($user); - $this->assertLessThan(0, $result); + $this->assertGreaterThan(0, $result); print __METHOD__." result=".$result."\n"; // We try to create same category again @@ -168,7 +168,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase $catid=$localobjecttmp->create($user); print __METHOD__." catid=".$catid."\n"; - $this->assertLessThanOrEqual(0, $catid); + $this->assertGreaterThan(0, $catid); // Category $localobject2=new Product($this->savdb); @@ -179,7 +179,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase $result=$localobject2->create($user); print __METHOD__." result=".$result."\n"; - $this->assertLessThanOrEqual(0, $result); + $this->assertGreaterThan(0, $result); return $id; } @@ -204,7 +204,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase $localobject=new Categorie($this->savdb); $result=$localobject->fetch($id); - $this->assertLessThan(0, $result); + $this->assertGreaterThan(0, $result); print __METHOD__." id=".$id." result=".$result."\n"; return $localobject; } @@ -230,7 +230,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase $result=$localobject->update($user); print __METHOD__." id=".$localobject->id." result=".$result."\n"; - $this->assertLessThan(0, $result); + $this->assertGreaterThan(0, $result); return $localobject; } @@ -291,7 +291,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase $result=$localobject->delete($id); print __METHOD__." id=".$id." result=".$result."\n"; - $this->assertLessThan(0, $result); + $this->assertGreaterThan(0, $result); return $result; }