ci: enhance AddProfile test method to work with any User (not only UserLocal)

This commit is contained in:
odain
2023-06-07 15:06:28 +02:00
parent 8b6ea43ebe
commit 3a891f707c

View File

@@ -455,7 +455,7 @@ class ItopDataTestCase extends ItopTestCase
/** @var DBObjectSet $oSet */
$oSet = $oUser->Get('profile_list');
$oSet->AddObject($oUserProfile);
$oUser = $this->updateObject('UserLocal', $oUser->GetKey(), array(
$oUser = $this->updateObject('User', $oUser->GetKey(), array(
'profile_list' => $oSet,
));
$this->debug("Updated {$oUser->GetName()} ({$oUser->GetKey()})");