N°6254 ItopDataTestCase::CreateUserRequest : now pass fields values as array

More versatile way of doing things !
This commit is contained in:
Pierre Goiffon
2023-04-26 16:14:29 +02:00
parent 4aff65f98b
commit e7ea1b831c
2 changed files with 23 additions and 13 deletions

View File

@@ -161,7 +161,11 @@ class DBSearchTest extends ItopDataTestCase
$i = 0;
foreach($aReq as $aParams)
{
$oObj = $this->CreateUserRequest($i, $aParams[0], $aOrgIds[$aParams[1]], $aPersonIds[$aParams[2]]);
$oObj = $this->CreateUserRequest($i, [
'time_spent' => $aParams[0],
'org_id' => $aOrgIds[$aParams[1]],
'caller_id' => $aPersonIds[$aParams[2]],
]);
self::assertNotNull($oObj);
$i++;
}