Fix: try another method

This commit is contained in:
Regis Houssin 2012-03-21 11:44:04 +01:00
parent 0c62709a9c
commit 14996257a2

View File

@ -136,8 +136,8 @@ class CategorieTest extends PHPUnit_Framework_TestCase
$this->assertGreaterThan(0, $result);
// Save and unset $this->id for good check test
$saveid = $localobject->id;
unset($localobject->id);
$saveid = (int) $localobject->id;
$localobject->id = 0;
// We check if exist
$result=$localobject->already_exists();
@ -151,6 +151,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase
// Restore $this->id with save value
$localobject->id = $saveid;
print __METHOD__." saveid=".$localobject->id."\n";
return $result;