Skip to content
Snippets Groups Projects
Commit 8abacfaf authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bad phpunit test

parent 57adc5e7
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,8 @@ class ContactTest extends PHPUnit_Framework_TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$localobject->oldcopy=dol_clone($localobject);
$localobject->note='New note after update';
//$localobject->note_public='New note public after update';
$localobject->lastname='New name';
......@@ -304,7 +306,7 @@ class ContactTest extends PHPUnit_Framework_TestCase
$localobject=new Contact($this->savdb);
$result=$localobject->fetch($id);
$result=$localobject->delete($id);
$result=$localobject->delete(0);
print __METHOD__." id=".$id." result=".$result."\n";
$this->assertLessThan($result, 0);
......
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