mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°6254 ItopDataTestCase::CreateUserRequest : now pass fields values as array
More versatile way of doing things !
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user