Fix: Bad phpunit test
This commit is contained in:
parent
06679ede7c
commit
91faac4c87
@ -181,6 +181,8 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
$langs=$this->savlangs;
|
$langs=$this->savlangs;
|
||||||
$db=$this->savdb;
|
$db=$this->savdb;
|
||||||
|
|
||||||
|
$localobject->oldcopy=dol_clone($localobject);
|
||||||
|
|
||||||
$localobject->note='New note after update';
|
$localobject->note='New note after update';
|
||||||
//$localobject->note_public='New note public after update';
|
//$localobject->note_public='New note public after update';
|
||||||
$localobject->lastname='New name';
|
$localobject->lastname='New name';
|
||||||
@ -304,7 +306,7 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
$localobject=new Contact($this->savdb);
|
$localobject=new Contact($this->savdb);
|
||||||
$result=$localobject->fetch($id);
|
$result=$localobject->fetch($id);
|
||||||
|
|
||||||
$result=$localobject->delete($id);
|
$result=$localobject->delete(0);
|
||||||
print __METHOD__." id=".$id." result=".$result."\n";
|
print __METHOD__." id=".$id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user