N°4756 - Fix unit tests

This commit is contained in:
Eric Espie
2022-09-19 16:09:02 +02:00
parent aa31da34e5
commit 88f0013330
3 changed files with 16 additions and 15 deletions

View File

@@ -453,9 +453,9 @@ class ItopDataTestCase extends ItopTestCase
$oUserProfile = new URP_UserProfile();
$oUserProfile->Set('profileid', $iProfileId);
$oUserProfile->Set('reason', 'UNIT Tests');
/** @var DBObjectSet $oSet */
/** @var \ormLinkSet $oSet */
$oSet = $oUser->Get('profile_list');
$oSet->AddObject($oUserProfile);
$oSet->AddItem($oUserProfile);
$oUser = $this->updateObject('UserLocal', $oUser->GetKey(), array(
'profile_list' => $oSet,
));