mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #3595 from GPCsolutions/note
[Qual] Do not test deprecated update_note_public()
This commit is contained in:
commit
86a201edcf
|
|
@ -266,7 +266,7 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||
$result=$localobject->update_note($localobject->note,'_private');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$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";
|
||||
$this->assertLessThan($result, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -211,14 +211,14 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||
$result=$localobject->update($localobject->id,$user);
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Contact::update error');
|
||||
|
||||
$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);
|
||||
|
||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||
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);
|
||||
$result=$newobject->fetch($localobject->id);
|
||||
|
|
|
|||
|
|
@ -208,11 +208,11 @@ class HolidayTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note error');
|
||||
|
||||
$result=$localobject->update_note_public($localobject->note_public);
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note_public error');
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note (private) error');
|
||||
|
||||
$result=$localobject->update_note($localobject->note_public, '_public');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note (public) error');
|
||||
|
||||
|
||||
$newobject=new Holiday($this->savdb);
|
||||
|
|
|
|||
|
|
@ -211,13 +211,13 @@ class SocieteTest extends PHPUnit_Framework_TestCase
|
|||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0);
|
||||
|
||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note_private error');
|
||||
$result=$localobject->update_note($localobject->note_private,'_private');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note (private) error');
|
||||
|
||||
$result=$localobject->update_note_public($localobject->note_public);
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note_public error');
|
||||
$result=$localobject->update_note($localobject->note_public, '_public');
|
||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||
$this->assertLessThan($result, 0, 'Holiday::update_note (public) error');
|
||||
|
||||
$newobject=new Societe($this->savdb);
|
||||
$result=$newobject->fetch($localobject->id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user