2
0
forked from Wavyzz/dolibarr

FIX Sql error

This commit is contained in:
Laurent Destailleur
2021-05-04 15:46:38 +02:00
parent 526235d020
commit f6305bf551
2 changed files with 32 additions and 6 deletions

View File

@@ -387,6 +387,35 @@ class SocieteTest extends PHPUnit\Framework\TestCase
* @depends testSocieteOther
* The depends says test is run only if previous is ok
*/
public function testGetOutstandingBills($id)
{
global $conf,$user,$langs,$db;
$conf=$this->savconf;
$user=$this->savuser;
$langs=$this->savlangs;
$db=$this->savdb;
$localobject=new Societe($this->savdb);
$localobject->fetch($id);
$result=$localobject->getOutstandingBills();
print __METHOD__." id=".$id." result=".var_export($result, true)."\n";
$this->assertLessThan($result, 0);
return $id;
}
/**
* testSocieteDelete
*
* @param int $id Id of company
* @return int
*
* @depends testGetOutstandingBills
* The depends says test is run only if previous is ok
*/
public function testSocieteDelete($id)
{
global $conf,$user,$langs,$db;