Skip to content
Snippets Groups Projects
Commit 67345494 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: use good function with good parameters

parent 5dbb246d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment