Merge remote-tracking branch 'origin/support/3.0' into develop

This commit is contained in:
Molkobain
2023-03-08 11:04:24 +01:00
4 changed files with 12 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ PHP,
<<<PHP
/** @var \ormLinkSet \$ormLinkset */
\$ormLinkset = \$oObject->Get('contacts_list');
\$ormLinkset->AddItem(MetaModel::NewObject('Person', []));
\$ormLinkset->AddItem(MetaModel::NewObject('lnkContactToTicket', []));
\$oObject->Set('contacts_list', \$ormLinkset);
PHP,
false,
@@ -164,7 +164,7 @@ PHP,
'UserLocal',
'password',
<<<PHP
$/** @var \ormPassword \$ormPassword */
/** @var \ormPassword \$ormPassword */
\$ormPassword = new ormPassword('somehash', 'somesalt');
\$oObject->Set('password', \$ormPassword);
PHP,

View File

@@ -99,7 +99,10 @@ class DataSynchroTest extends ItopDataTestCase
$sUrl = \MetaModel::GetConfig()->Get('app_root_url').'/synchro/synchro_import.php?login_mode=form';
$sResult = utils::DoPostRequest($sUrl, $aParams, null, $aResponseHeaders, []);
$sResult = utils::DoPostRequest($sUrl, $aParams, null, $aResponseHeaders, [
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 0,
]);
// Read the status code from the last line
$aLines = explode("\n", trim(strip_tags($sResult)));
//$sLastLine = array_pop($aLines);