Fix: try another method
This commit is contained in:
parent
0c62709a9c
commit
14996257a2
@ -136,8 +136,8 @@ class CategorieTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertGreaterThan(0, $result);
|
$this->assertGreaterThan(0, $result);
|
||||||
|
|
||||||
// Save and unset $this->id for good check test
|
// Save and unset $this->id for good check test
|
||||||
$saveid = $localobject->id;
|
$saveid = (int) $localobject->id;
|
||||||
unset($localobject->id);
|
$localobject->id = 0;
|
||||||
|
|
||||||
// We check if exist
|
// We check if exist
|
||||||
$result=$localobject->already_exists();
|
$result=$localobject->already_exists();
|
||||||
@ -151,6 +151,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
// Restore $this->id with save value
|
// Restore $this->id with save value
|
||||||
$localobject->id = $saveid;
|
$localobject->id = $saveid;
|
||||||
|
print __METHOD__." saveid=".$localobject->id."\n";
|
||||||
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user