mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
ci: enhance AddProfile
This commit is contained in:
@@ -45,6 +45,7 @@ use Server;
|
||||
use TagSetFieldData;
|
||||
use Ticket;
|
||||
use URP_UserProfile;
|
||||
use User;
|
||||
use VirtualHost;
|
||||
use VirtualMachine;
|
||||
|
||||
@@ -455,7 +456,7 @@ class ItopDataTestCase extends ItopTestCase
|
||||
/** @var DBObjectSet $oSet */
|
||||
$oSet = $oUser->Get('profile_list');
|
||||
$oSet->AddObject($oUserProfile);
|
||||
$oUser = $this->updateObject('User', $oUser->GetKey(), array(
|
||||
$oUser = $this->updateObject(User::class, $oUser->GetKey(), array(
|
||||
'profile_list' => $oSet,
|
||||
));
|
||||
$this->debug("Updated {$oUser->GetName()} ({$oUser->GetKey()})");
|
||||
|
||||
Reference in New Issue
Block a user