From 3a891f707caee4e6c94c6365ca636f5b78d6962f Mon Sep 17 00:00:00 2001 From: odain Date: Wed, 7 Jun 2023 15:06:28 +0200 Subject: [PATCH] ci: enhance AddProfile test method to work with any User (not only UserLocal) --- tests/php-unit-tests/ItopDataTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php-unit-tests/ItopDataTestCase.php b/tests/php-unit-tests/ItopDataTestCase.php index 6315ccc4d..ebdaa206c 100644 --- a/tests/php-unit-tests/ItopDataTestCase.php +++ b/tests/php-unit-tests/ItopDataTestCase.php @@ -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()})");