N°5784 - Fix unit test for PHP 8.2

This commit is contained in:
Molkobain
2023-03-08 09:34:35 +01:00
parent 6510dc5c51
commit 03ac3d4e7c

View File

@@ -11,7 +11,7 @@ use MetaModel;
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class AttributeDefTest extends ItopDataTestCase {
class AttributeDefinitionTest extends ItopDataTestCase {
const CREATE_TEST_ORG = true;
protected function setUp(): void {
@@ -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,