N°7216 - CSV Import failling with cryptic message when some lines have a missing separator - fix test

This commit is contained in:
Anne-Cath
2025-06-06 10:29:26 +02:00
parent 282fb13973
commit 0a4f9e95c5

View File

@@ -251,7 +251,10 @@ class BulkChangeTest extends ItopDataTestCase
$this->debug("oServer->GetKey():".$oServer->GetKey());
}
$iNBFields = count($aAttributes);
foreach ($aExtKeys as $aListFields) {
$iNBFields += count($aListFields);
}
$oBulk = new BulkChange(
"Server",
$aCsvData,
@@ -261,7 +264,8 @@ class BulkChangeTest extends ItopDataTestCase
null,
null,
"Y-m-d H:i:s", // date format
true // localize
true, // localize,
$iNBFields
);
$aRes = $oBulk->Process();
static::assertNotNull($aRes);