2
0
forked from Wavyzz/dolibarr

Merge pull request #27294 from alexandre-janniaux/fichintertest-soc/1

FIX: FichinterTest: create Societe object in test
This commit is contained in:
Laurent Destailleur
2024-01-05 02:05:17 +01:00
committed by GitHub

View File

@@ -139,8 +139,14 @@ class FichinterTest extends PHPUnit\Framework\TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$soc = new Societe($db);
$soc->name = "FichinterTest Unittest";
$socid = $soc->create($user);
$this->assertLessThan($socid, 0, $soc->errorsToString());
$localobject=new Fichinter($db);
$localobject->initAsSpecimen();
$localobject->socid = $socid;
$result=$localobject->create($user);
print __METHOD__." result=".$result."\n";