From 0432609502a2067dff32ee465ce4bac009d094fe Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Wed, 21 Mar 2012 11:24:30 +0100 Subject: [PATCH] Fix: unset $this->id for good check test --- test/phpunit/CategorieTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index 26ddd4bdfd5..b974e6f57a5 100755 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -135,6 +135,9 @@ class CategorieTest extends PHPUnit_Framework_TestCase print __METHOD__." result=".$result."\n"; $this->assertGreaterThan(0, $result); + // Unset $this->id for good check test + unset($localobject->id); + // We check if exist $result=$localobject->already_exists(); print __METHOD__." result=".$result."\n"; -- GitLab