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

Fix: try another method

parent 0c62709a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment