[Qual] Do not test deprecated update_note_public()
This commit is contained in:
parent
ea7384cf68
commit
bd7d487c79
@ -266,7 +266,7 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||||||
$result=$localobject->update_note($localobject->note,'_private');
|
$result=$localobject->update_note($localobject->note,'_private');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
$result=$localobject->update_note_public($localobject->note,'_public');
|
$result=$localobject->update_note($localobject->note,'_public');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
|
|
||||||
|
|||||||
@ -212,13 +212,13 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Contact::update error');
|
$this->assertLessThan($result, 0, 'Contact::update error');
|
||||||
|
|
||||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
|
||||||
$this->assertLessThan($result, 0, 'Contact::update_note error');
|
|
||||||
|
|
||||||
$result=$localobject->update_note_public($localobject->note_public);
|
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Contact::update_note_public error');
|
$this->assertLessThan($result, 0, 'Contact::update_note (private) error');
|
||||||
|
|
||||||
|
$result=$localobject->update_note($localobject->note_public, '_public');
|
||||||
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
|
$this->assertLessThan($result, 0, 'Contact::update_note (public) error');
|
||||||
|
|
||||||
$newobject=new Contact($this->savdb);
|
$newobject=new Contact($this->savdb);
|
||||||
$result=$newobject->fetch($localobject->id);
|
$result=$newobject->fetch($localobject->id);
|
||||||
|
|||||||
@ -208,11 +208,11 @@ class HolidayTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Holiday::update_note error');
|
$this->assertLessThan($result, 0, 'Holiday::update_note (private) error');
|
||||||
|
|
||||||
$result=$localobject->update_note_public($localobject->note_public);
|
$result=$localobject->update_note($localobject->note_public, '_public');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Holiday::update_note_public error');
|
$this->assertLessThan($result, 0, 'Holiday::update_note (public) error');
|
||||||
|
|
||||||
|
|
||||||
$newobject=new Holiday($this->savdb);
|
$newobject=new Holiday($this->savdb);
|
||||||
|
|||||||
@ -211,13 +211,13 @@ class SocieteTest extends PHPUnit_Framework_TestCase
|
|||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
|
|
||||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Holiday::update_note_private error');
|
$this->assertLessThan($result, 0, 'Holiday::update_note (private) error');
|
||||||
|
|
||||||
$result=$localobject->update_note_public($localobject->note_public);
|
$result=$localobject->update_note($localobject->note_public, '_public');
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0, 'Holiday::update_note_public error');
|
$this->assertLessThan($result, 0, 'Holiday::update_note (public) error');
|
||||||
|
|
||||||
$newobject=new Societe($this->savdb);
|
$newobject=new Societe($this->savdb);
|
||||||
$result=$newobject->fetch($localobject->id);
|
$result=$newobject->fetch($localobject->id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user